in reply to Re^3: system bash return value
in thread system bash return value

Hi Laurent_R,

Depending on the situation, the regex might need ... a quotemeta of the string used for the regex

That's all I was trying to say, and I refer to Mind the meta! because in my experience many wisdom seekers are not aware of that issue, and I've seen monks forget \Q...\E several times too. As I said, your post is what I would have replied to the OP, so ++!

Regards,
-- Hauke D