Python Learning
Sunday, 16 February 2020
Use an OR in regex without capturing what's enclosed?
If your implementation has it, then you can use non-capturing parentheses:
(?:
a
|
b
)
from :
https://stackoverflow.com/questions/3378773/can-i-use-an-or-in-regex-without-capturing-whats-enclosed
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment