Thanks for reply
Could you explain again, why - is part of found string?
I thought if I use .+? with ?
it means the smallest possible string to find....
Hello
Could you help me with regex related question?
I have code:
--------------
$s = '-html=-head=head data-head=-body=BODY-body=-html=';
while ($s =~ /=(.+?)-/gxis) {
print "$1\n";
}
--------------
when I run this code I see results:
---------
-head=head data
-body=BODY
---------
but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.