In regular expression in python
[abc] matches either a or b or c
How to do [abc] that matches either ab or bc ? Is this possible ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
|regular expression operator to specify multiple possibilities:Wrap them in brackets if it’s part of a larger expression:
See regular expression syntax in the Python documentation for all of the options.