i want to check 2 patterns using regex.
can i check those both patterns in the same time (like if(condition1 | condition2) condition).
any idea?
You can do it exactly the way you did, with pipe separating the two+ expressions
For instance: The regular expresion (abc)|(def)
would match abc
OR def
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