Is there an easy way to remove all chars before a "_"? For example, change 3.04_somename.jpg
to somename.jpg
.
Any suggestions for where to learn to write regex would be great too. Most places I check are hard to learn from.
regex
Is there an easy way to remove all chars before a "_"? For example, change 3.04_somename.jpg
to somename.jpg
.
Any suggestions for where to learn to write regex would be great too. Most places I check are hard to learn from.
Best Answer
will match all text up to the first underscore. Replace that with the empty string.
For example, in C#:
For learning regexes, take a look at http://www.regular-expressions.info