Hi!
I´m having problems with matching a string with a regular expression. The string looks something like this:
xxx\xxx\xxx\xxx
I´m trying to get the last two part of the path, i.e xxx\xxx. The regex I´ve been using is:
^/\.*/\.*$[^/\]
Shouldn´t this work? Any other suggestions?
I´m using the class System.Tex.RegularExpressions.Regex and it throws an exception saying that "parsing "^/\.*/\.*$[^/\]" - Unterminated [] set." What does that mean?
Regards,
lottap
I´m having problems with matching a string with a regular expression. The string looks something like this:
xxx\xxx\xxx\xxx
I´m trying to get the last two part of the path, i.e xxx\xxx. The regex I´ve been using is:
^/\.*/\.*$[^/\]
Shouldn´t this work? Any other suggestions?
I´m using the class System.Tex.RegularExpressions.Regex and it throws an exception saying that "parsing "^/\.*/\.*$[^/\]" - Unterminated [] set." What does that mean?
Regards,
lottap