Friday, 23 August 2013

Regular Expression so select everything before and up to a particular text

Regular Expression so select everything before and up to a particular text

I am trying to use a regular expression to find a part of a string and
select everything up to that string. So for example if my string is
"this/is/just.some/test.txt/some/other" I want to search for .txt and when
I find it select everything before and up to .txt.

No comments:

Post a Comment