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 < Should be occupied there-on my .

This will:

  (?!! *? / ). * (? = -)   

Depending on your language, you should avoid losing /

:

  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 `-`   

comment: now / and the last - In the results

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -