Thread not greedy enough? (6 answers)
Opened by linuxCowboy at 2021-07-01 17:37

linuxCowboy
 2021-07-01 17:37
#193389 #193389
User since
2014-01-29
30 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
echo abc | perl -pe 's/(?<!a)(b)*c/x$1c/'

gets abxc not nothing!

Is there a regex (more greedy?) or only the explicit if/elsif?

View full thread not greedy enough?