Regex: characters following a slash and ending before a hyphen
I've been playing around with regex for a bit and regex visualizations,
but have had no luck in generating something that will match a section of
a url that is text of variable length preceeded by a forward slash and
terminated by a hyphen. What expression would do this?
www.lamp.com/;alskfjdlkfja;sdlkfjasldfj-209
but not
www.lamp.com/a;slkfja;sdlkfjas;dflkj
because that doesn't contain a hyphen
No comments:
Post a Comment