Hi folks!
I'm trying to find the latter half of patterns of the following template:
foo/BAR
'BAR' is the one I'm trying to retrieve. I tried with something like:
\b(foo)/([a-zA-Z]+)
This works fine, but this also matches http://foo/BAR
- which I don't want.
I also tried
\\s(foo)/([a-zA-Z]+)
but this doesnt match when the line starts with foo/BAR. (I'm using java.util.regex)
I'm a regex newbie, any help here is much appreciated!
Thanks, Raj