H
Hal Vaughan
I'm not sure what terms to look for here. I want to use a regex that will
match as little as possible in a string from the *end* of the string. For
example, if I have "OneTwoThreeTwoOne", I want to know how I can match
only "TwoOne" at the end and not "TwoThreeTwoOne".
I've been experimenting with quantifiers, but something like "Two.*?$" will
grab everything from the first occurrence of "Two". How can I make it grab
from only the last occurrence?
Thanks!
Hal
match as little as possible in a string from the *end* of the string. For
example, if I have "OneTwoThreeTwoOne", I want to know how I can match
only "TwoOne" at the end and not "TwoThreeTwoOne".
I've been experimenting with quantifiers, but something like "Two.*?$" will
grab everything from the first occurrence of "Two". How can I make it grab
from only the last occurrence?
Thanks!
Hal