Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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? 

✔️ If this solves your issue, please mark it as Correct.


✔️ If you found it helpful, please mark it as Helpful.



Shubham Jain


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