I have a series of strings and I need to extract a certain portion of them. I would like to use regular expressions to do this. This strings all have this general form:
content/landdata/files/Albuquerque_123.zip
Most of the string is static except for the city name. It could be any city name.
I've gotten as far as this:
(?!content/landdata/files/)(?:[A-Za-z_-])*[_][0-9]{1,}(?!\\.zip)
Which will give me Albuquerque_123 but I'm having trouble getting rid of the _123.
_123at the end, or is it just some integer?