A
Arvind Varma Kalidindi
Hello,
I know that there is this java.util.regex package which can be
used for doing patten matching on text. But is there a java
program/application which will generate a regular expression for a
given string? In other words, if I give "Gabriel" as the input, it
should say that the regular expression will be ^[A-Z]+[a-zA-Z]*$ .
(Notice the "G" in Gabriel).
Can somebody give me some pointers towards building such an
application (if one doesn't exist)?
Regards,
Arvind.
I know that there is this java.util.regex package which can be
used for doing patten matching on text. But is there a java
program/application which will generate a regular expression for a
given string? In other words, if I give "Gabriel" as the input, it
should say that the regular expression will be ^[A-Z]+[a-zA-Z]*$ .
(Notice the "G" in Gabriel).
Can somebody give me some pointers towards building such an
application (if one doesn't exist)?
Regards,
Arvind.