regex - Need a regular expression to return text from last "/" to last "-" -
I just can not figure out how to find out
in the string This will: Depending on your language, you should avoid losing : comment: now
(?!! *? / ). * (? = -)
/
1. (?!. *? /) - look forward to the negative It will begin collecting the letters after the last `/` 2. * - looks for all the characters 3. (? = -) - Proceed to positively. This means that Step 2 should be edited only after the last `-`
/ and the last
- In the results
Comments
Post a Comment