cancel
Showing results for 
Search instead for 
Did you mean: 

substring function in CPI properties

Jeevitha_04
Explorer
0 Kudos

Please help how to extract the highlighted value and put it in another property using substring ?

 

1.jpg

2.jpgtrace output.jpg

I am not getting required value , please let me know the sytax to be used for substring 

 

Thanks in advance

Jeevitha

Ryan-Crosby
Active Contributor
0 Kudos
Your substring function is closed with a curly bracket } instead of parentheses ).

Accepted Solutions (0)

Answers (1)

Answers (1)

JiriStarek
Explorer
0 Kudos

Because length of variable is not fixed, try  something like this
replace(${property.ID}, '_([0-9].*).*~.*$', '$1')

https://www.w3.org/TR/xpath-functions/#func-replace