I have following pattern which fails with the underscore at the end but works otherwise
“.\d{1,2}\.\d{1,2}_.”
EDIT:
so I want all string that look with this:
ANY TEXT HERE 10.20_ ANY TEXT HERE
“Here is a sample 10.20_ that i use.”
“10.20_ is another sample.”
After the
_there is a.which means one occurrence of a character except line break. So if the_is at end it will not match the regex. You have not given any examples of what you want, and just the regex, but you may want to make it.\d{1,2}\.\d{1,2}_.?