Regular Expression conditionals, e.g. "and" / "or" [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
开发者_Python百科Closed 9 years ago.
Improve this questionIs there a way using regular expressions to find
grep 'a &| b &| c' #pseudo code
If 'a' is found also check for 'b' and if 'a' is not found also check for 'b'? etc...
You can just nest the needed values in parenthesis for and support. Yes there is or |
support.
(ab)|(a(c|b))
I would have left it in a comment but don't have enough rep.
Is this what you mean?
(a)?(b)?(c)?
精彩评论