When running:
select regexp_replace('( (test :Name (x) :Table (y) )','\s+\:Name \(.*?\)',' avner ');
I get:
"( (test avner "
But if I run:
select regexp_replace('( (test :Name (x) :Table (y) )','\:Name \(.*?\)',' avner ');
I get:
"( (test avner :Table (y) )"
Why is the \s+ at the start cause matching till the end of the string?
\sisn't matching till the end, the.*?is