In Pyhton can use re.compile()
to check regex string, and in Java can use Pattern.compile()
...
However, my use case is that I have two systems, and need Python to check a string whether is a valid regex string for Java. Is there any packages that can check across language, or ways to convert python regex to java regex, or is it even possible to recognize Java regex in the Python world?
Many thanks