[Advanced-java] Regular Expressions
Jan-Oliver Wuelfing
Jan-Oliver.Wuelfing at scai.fraunhofer.de
Mon Jun 2 01:54:05 PDT 2008
Hello Java-Community,
I would like to know whether I can use Regular Expressions in nearly
every Java-Functions, e.g.:
for (z = ro_cand.lastIndexOf("Storage"); z < ro_cand.length(); z++) {
if ("[0-9]" == ro_cand.charAt(z)) {
com_str = ro_cand.substring(z, ro_cand.indexOf("#", z));
}
}
Where I want to check if at the specific position z occurs any kind of
number.
Do you have any advice for me how I can use REs in any function?
Many thanks in advance
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jan-Oliver.Wuelfing.vcf
Type: text/x-vcard
Size: 369 bytes
Desc: not available
Url : /lists/advanced-java/attachments/20080602/7c2092b6/attachment.vcf
More information about the Advanced-java
mailing list