- or download this
DB<63> print join "|",'abc' =~ /a(.+?)(c)?/
b|c
DB<64> print join "|",'abd' =~ /a(.+?)(c)?/
b|
- or download this
DB<84> print join "|",'a<c1<c2' =~ /(.+?)<(c.)?/ # ok
a|c1
...
DB<86> print join "|",'a<b1<c2' =~ /(.+?)<(c.)?/ # oops
a|
- or download this
DB<89> print join "|",'a<b1<c2' =~ /(.+?)(c.)?/
a|