Forum Discussion
CloudMe
Sep 28, 2019Copper Contributor
Regex Question
Hi, How can i extract a single value from a string: ABC XXXXX DEF I know my XXX value will always be between ABC and DEF but i can't find a way to extract it without extracting the ABC an...
- Sep 28, 2019
Would this work?
print t= "ABC XXXXX DEF" | parse t with *"ABC" theInfo "DEF"* | project theInfo
zachedwards
Microsoft
Oct 11, 2019CloudMe In Regex wrap the .+ in parenthesis to assign it to a capture group. Then you can use the optional extract parameter captureGroup:
print extract("ABC (.+) DEF", 1, "ABC XXXXX DEF")