I guess @mvizoso has seen some example command that can take a regular expression.
These strings may have ment to be “(.*)” which translates to a string (the two quotes), containing a part of a regular expression (the parentheses), and zero or more times any character (the star being zero or more times, the dot representing any character), in short: zero or more characters.
That is why I asked @mvizoso if he is interested in regexps or is interested in matching a string within a string in another way, being the
indexOf(). Looking back on my education on regexps I remember mainly confusion, as regular expressions can lead a life of their own.
Even if the regexp would work in the
matches, the spelling of @mvizoso’s example most likely doesn’t work as intended, as it contains a space, so the expression as written down the first time means any character, followed by zero or more spaces , the second means zero or more characters, followed by a space… If I’m not mistaken (and still confused ).