I got the following regex:
"throw new [a-zA-Z]+Exception"
I want do modify it so that all Argument exceptions ("Argument[a-zA-Z]*Exception") are not included
How do I combine them?
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.
Take a look at this page for more information: http://www.regular-expressions.info/completelines.html
Keep in mind that different regex implementations may not support all of the options available, so YMMV. If you have a regex designer tool that will let you test the expression live, I highly recommend it. You need a negative lookahead expression:
Make sure your regex library supports lookahead and negative lookahead expressions.