Re: Prefixes of regular expressions



On Mon, 30 Jun 2008 05:18:06 GMT, Roedy Green
<see_website@xxxxxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :

the brute force approach is to have a different regex for each length
of string.

If you look at those regexes,, you may be able to create a single
regex that will work for more than one length. e.g.. that ended with
[0-9]* to reduce the total number of them you require.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: Reading rows and columns
    ... String[] computerName ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.help)
  • Re: Need regular expression help
    ... someone give me the regular expression to split this string: ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Grabbing the integer out from a string...
    ... integer within a string like: ... They are named like the French irregular verbs. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Removing Dates from Strings
    ... me if the String contains a date + time - but no idea how to also get ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)
  • Re: Regexp Octal question
    ... string. ... I have never heard of octal in regexes. ... Java source literals. ... Roedy Green Canadian Mind Products ...
    (comp.lang.java.programmer)