regular expression
Hi,
I have a regular expression which wroks fine in linux, but when I want to use it in java it doesn't work.
The regular expression is: {[0][0-9],[1-2][0-9]} in linux. I use it for "ls" command and is working.
But when I want to use it in java is not working because the { is a metacharacter but if I put \\ for { and one for }, then regular expression doesn't work because it became: \{[0][0-9],[1-2][0-9]\}
The ideea is that I need to made an AND between two regular expressions.
Can anyone give me a solution?
Thank you,
Alexandra

