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
Post a Comment