Reg Ex help
Posted: Mon May 06, 2019 8:18 am
I could use a little help with a regular expression.
The string I'm searching looks like this: "word1 word2 word3Number_number_1234". I need everything until (but NOT including) the last underscore.
This regEx
.*\_
will give me everything until and including the last underscore "word1 word2 word3Number_number_". How can I get rid of the last underscore?
The string I'm searching looks like this: "word1 word2 word3Number_number_1234". I need everything until (but NOT including) the last underscore.
This regEx
.*\_
will give me everything until and including the last underscore "word1 word2 word3Number_number_". How can I get rid of the last underscore?