With RegEx in a pattern, how do you extract multiple values?

cloudyrobert
Tera Guru

Could someone please provide an example of using the parse file operation with RegEx to run multiple RegEx expressions in order to build a table? For example, how could I use RegEx to pull back multiple values from the config.xml file on the MID server host in a single Parse File step and store them in a table of variables?

The docs site says to enclose each expression in parentheses, but I've not been able to get that to work.

"To extract multiple values, define several expressions enclosing each expression into parentheses."

https://docs.servicenow.com/bundle/london-it-operations-management/page/product/service-mapping/task...

11 REPLIES 11

@cloudyrobert @Was my response helpful? 

Issue resolved? → Mark as Correct


Found value? → Mark as Helpful


Hi @shubhamseth -- I'm afraid this was six years ago, and I'm not still working on it.