AnsweredAssumed Answered

How to extract part of url path in a property manager variable?

Question asked by Fabio Testa on Dec 2, 2016
Latest reply on Dec 5, 2016 by Steven Scian

I have some troubles in populate a #propertymanager variable with part of url path.

 

Example: i have the url "http://www.example.com/path/lang_EN" and i want to populate URL_LANGUAGE variable with "EN".

 

I have tried with this rule (URL_PATH is populated from AK_PATH); i supposed that "TEST" string should replace "http://www.example.com/path/lang_" first group match of "([\s\S]*?)(EN|IT|FR|ES|DE|KO|ZH|RU)" regex  , giving "TESTEN" value, but returns an empty string.

 

 

 

I can't use the path offset extraction option because the offset can vary.

Outcomes