regex - Regular Expression to select everything before and up to a particular text -


i trying use regular expression find part of string , select string. example if string this/is/just.some/test.txt/some/other, want search .txt , when find select before , .txt.

after executing below regex, answer in first capture.

/^(.*?)\.txt/ 

Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -