You appear to have a lone "*"
in your regex. That is not correct. A "*"
does not mean "anything" (like in a file spec), but "the previous can be repeated 0 or more times".
If you want "anything" you have to write ".*"
. The "."
means "any single character", which will then be repeated.
Edit:
The same would happen if you use other quantifiers by their own: "+"
, "?"
or "{n,m}"
(where n and m are numbers that specify lower and upper limit).
- "*" is identical to "{0,}",
- "+" is identical to "{1,}",
- "?" is identical to "{0,1}"
which might explain the text or the error message you get.