i am not much familiar with regex expressions use in Java.
If i have a String this/is/a/file!/path
now with substring and indexOf i can find the name file appearing inbetween / and ! but i am pretty sure such tasks must be much easier using regexes.
Can someone give me an example for doing so using regex expressions?
Another way is to use Pattern and Matcher. Here you can use groups and more complex operations
Take a look at
Matcher : http://docs.oracle.com/javase/1.5.0/docs/api/java/util/regex/Matcher.html
Pattern : http://docs.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html
Regex in Java : http://docs.oracle.com/javase/tutorial/essential/regex/