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