- This topic has 9 replies, 3 voices, and was last updated 4 years, 5 months ago by .
-
Topic
-
Given this string:
set s1 “<item>Provider/Practice : UHCC (UHCC Adult Care)</item>”
execute the regexp:
regexp {(?:.*Practice.*)\(.*\)(?:\</item\>)} “$s1” match
result is 1
examine the match contents:
echo $match
result:
<item>Provider/Practice : UHCC (UHCC Adult Care)</item>
The non-capturing tokens should remove all but “(UHCC Adult Care)”, but I’m getting everything. How can I use non-capturing syntax in regexp?
Peter Heggie
Viewing 7 reply threads
Viewing 7 reply threads
- You must be logged in to reply to this topic.