First, did you have curly quotes? You want straight quotes, of course. (This is probably an artifact of Discourse, our forum software.
So, I assume you actually wrote:
This won’t crash – at least it didn’t when I tried it – but it won’t do what you want, because the character
* has a special meaning here. It means, “0 for more repetitions of the preceding pattern.” This lets you search for things like “a capital letter, optionally followed by some digits.”
What you want to do is to search for a literal asterisk.
Here, the backslash means “take the next character literally: I mean an asterisk, not a wildcard character.”