How to check if a given Regex is valid?

Posted by Philipp Andre on Stack Overflow See other posts from Stack Overflow or by Philipp Andre
Published on 2010-04-24T14:49:59Z Indexed on 2010/04/24 15:03 UTC
Read the original article Hit count: 275

Filed under:
|

Hi folks,

I have a little program allowing users to type-in some regular expressions. afterwards i like to check if this input is a valid regex or not.

I'm wondering if there is a build-in method in Java, but could not find such jet.

Can you give me some advice?

Best regards Phil

© Stack Overflow or respective owner

Related posts about java

Related posts about regex