I am building an API that requires a SQL Regular expression to be converted to Java regular expression. This regex is specifically for the REGEXP
keyword in MySQL.
My question is: is there any library or git-hub repo readily available to achieve this?
SQL Query:
SELECT company
FROM business
WHERE title REGEXP '^[ABCD]';
Input regex in MySQL: ^[ABCD]
Output regex in Java: [A-D]*
I searched a lot over the internet, but could not find one to do this. Any suggestions how I can approach this.