> I am looking for a way that will allow me to tokenize a string
> describing the delimiter with a regular expression and that will also
[quoted text clipped - 4 lines]
>
> Thanks!!
If you are wanting the tokenizer to return the delimiters as tokens,
then when declaring your tokenizer make sure the third argument is true.
For example:
String Tokenizer st = new StringTokenizer("This|is|a|test","|",true);
NG

Signature
The life of a repoman is always intense!
Gin - 09 Jul 2005 11:21 GMT
Oh thanks but then the delimiter the second argument can't be a regular
expresssion.
The method I am looking for would be like the stringtokenizer but
taking regular expressions.
StringTokenizer syllable = new StringTokenizer("longevity",
"[^AEIOUYWaeiouyw][AEIOUYWaeiouyw]", true);
This regular expressions searches for syllables of one consonant and
one vowel.