Home > database >  Used to using a regular expression way of implementation
Used to using a regular expression way of implementation

Time:10-02

I am a Java web application, using the JDBC implementation is essentially ordered, now there is a demand, the user sent up a regular expression, and then I want to match a field is in compliance with the regular expression,
For example, I have a table:

Then the user name field in the table you want to match the regular expression, and get the result of the match,
As essentially did not provide similar mysql REGEXP keywords, oracle's built-in REGEXP_LIKE function, so the trouble,,
I would try to use VBScript RegExp for function, but because of I used on Linux no VBScript library, so look not to come out?
So, what other way
I can now use JDBC to perform essentially a command, or Java, there are other methods can be used to match the regular? consult
  • Related