Getting two different words as part of in a regular expression
I want to catch say
“This Text” and “This Somethingelse”
I currently have
\s*This\sText.*
but I am trying to catch both “Text” and “Somethingelse”
I am somewhat new to regular expressions but have looked at this and am stumped. Any ideas?
Try this…
If you are using PHP, you can find out if it was
TextorSomethingElselike so…