I'm writing a regex that will find either
. .. ... .... followed by a space or not followed by anything at all? ?? ??? again followed by a space or not followed by anything at allHow do I write this regex so I can have it do this or that?
\.+ ?$
\?+ ?$
(you just need to escape a . or ? with a \ to match it literally, since those characters have special meanings in regular expressions.)
Prefix either of these with ^ if you want to match lines containing only your pattern.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With