Home:ALL Converter>How Python validate a regex String for Java?

How Python validate a regex String for Java?

Ask Time:2020-09-06T17:32:04         Author:MJ Tsai

Json Formatter

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

Author:MJ Tsai,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/63762660/how-python-validate-a-regex-string-for-java
yy