in reply to Re^2: system bash return valuein thread system bash return value
Depending on the situation, the regex might need an ignore case modifier, a quotemeta of the string used for the regex, etc.