Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-| '|')[storedVars['delimiter']]} | result
echo | ${result}
Result will be - 845290
Try out below code
store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-| ')[storedVars['delimiter']]} | result
echo | ${result}
Result will be - 845290
Try out below code
store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-|')[storedVars['delimiter']]} | result
echo | ${result}
store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-| ')[storedVars['delimiter']]} | result
echo | ${result}