in reply to Re: Style question: regex versus string builtin function
in thread Style question: regex versus string builtin function

that it's a "does the needle exist anywhere", while a regex immediately gives that kind of association

g, that doesn't work for me.

Regexes are inherently more complex to use than the index function. There are the various regular expression dialects, there are the modifiers, and there are the global variables upon which they may trample.

But, like others, I tend to reach for the match operator.

Be well,
rir