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 I expect to see:
-----------
head data
BODY
-----------
could you explain what is the problem in?
thanks
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 I expect to see:
-----------
head data
BODY
-----------
could you explain what is the problem in?
thanks