Thread
:
Regex help needed.
View Single Post
01-27-2019, 02:34 PM
#
2
jhowell
Grand Sorcerer
Posts: 7,099
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
.* is greedy. It will match as many characters as possible.
.*? will match as few characters as possible and will work better here.
[0-9]+ is another alternative if the value is always numeric.
jhowell
View Public Profile
Find More Posts by jhowell
Track Posts by jhowell via RSS