java regular expression
Hi everyone,
I`m working in a java program that has to check the sintax of an url.
This sintax is as follows:
{rmt or fos or win or los or}/content.xml
ie. one of this words(rmt,fos,win,..) slash and the word content.xml
I'm using the function string.matches(string regex) and I having problems in finding the correct regular expression for this url.
This is the regular exp I thought of and which doesnt work:
url.matches("[fos|rmt|inc|inf|los|res|all]//[content.xml]")
Thanks for the help.
Tomi.
|