java - How can I use substring string function in MVEL expressions -


i using studio , have need use mvel expressions. can please tell me how can extract characters in field after underscore character.i reading these values xml file.please see below example.

action:

new_3456 new_cw234789 

so, want mvel expresion extract values after underscore. so, result above expression should 3456 , cw234789 respectively.

here using : declare variable navigate , pick action field value.

lets variable declared

props['applicant.status1']  

the value of variable :

props['applicant.status1'] = parts[0].xpath('/row/action/normalize-space(substring(text(),5,8))') 

the output 3456 , cw23 fine.

now here issue, in order extract value aftre underscore used below expression , not getting deired value.

props['applicant.status1'] = parts[0].xpath('/row/action/normalize-space(substring-after(text(),5))') 

can please tell me if above expresion correct. there other way can value desiring. thanks!

"can please tell me how can extract characters in field after underscore character"

this should straightforward given knew substring-after() function :

/row/action/normalize-space(substring-after(., "_")) 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -