Hi,
I'm having some difficulty writing a regular expression. My input will be a url, looking like this:
http://www.a.com/farms/important-stuff-here#ignorable-stuff
I wanted to capture (some-stuff-here), which is everything between the last forward slash, and the first # sign (or just the ending, if the # sign extra content does not exist. I thought this might do it:
(http://www.a.com/farms/)
([anything but a # character]*)
(.*)
I'm not sure how to express the 2nd group ([anything but a # character]*
).
Thanks