I was thinking, how do I create a regular expression that allows me to use something similar to "or" statement For example,
^ \ w +? [\ S?] Or [\\ w \\ W] *?] $ where the brackets represent the condition.
like this:
(thing1 | thing2) This "item1" or "cheese 2" -.
In your example, this would be:
^ (\ w +? [\ S?] | [\ W \ W] *?]) $
Comments
Post a Comment