I'm inexperienced with regex, but I'm not quite certain how to pull this off:
There is a message that I might be afflicted with paralysis. Unfortunately, the way the game does it is to replace various letters with asterisks at random characters:
"A prickly stinging overcomes your body, fading away into numbness."
It will show up like so:
A *rick*y stin*ing *ver*comes ...
Anyway you get the idea.
Now originally, I set up a regex to look like so:
^(A|\*)( |\*)(p|\*)(r|\*)(i|\*)(c|\*)(k|\*)(l|\*)(y|\*).*$
Now this does work.. but with some unintended side effects... if I see a line of all asterisks, then the regex is interpreted to be true. I can't figure out how to make it work so that it would pick up when I have random characters in a line substituted by asterisks, and yet not a solid line of asterisks.
Any hints to get me in the right direction?
Thanks!
Regards,
Neurowiz
There is a message that I might be afflicted with paralysis. Unfortunately, the way the game does it is to replace various letters with asterisks at random characters:
"A prickly stinging overcomes your body, fading away into numbness."
It will show up like so:
A *rick*y stin*ing *ver*comes ...
Anyway you get the idea.
Now originally, I set up a regex to look like so:
^(A|\*)( |\*)(p|\*)(r|\*)(i|\*)(c|\*)(k|\*)(l|\*)(y|\*).*$
Now this does work.. but with some unintended side effects... if I see a line of all asterisks, then the regex is interpreted to be true. I can't figure out how to make it work so that it would pick up when I have random characters in a line substituted by asterisks, and yet not a solid line of asterisks.
Any hints to get me in the right direction?
Thanks!
Regards,
Neurowiz