Thread
:
Regex for next "n" characters
View Single Post
10-02-2014, 02:41 PM
#
2
eschwartz
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can match any character with the dot, and use
Code:
.....
to match any five characters.
You can also use
Code:
.{5}
to repeat the preceding character/group 5 times. See:
http://www.regular-expressions.info/repeat.html
under "Limiting Repetition".
eschwartz
View Public Profile
Find More Posts by eschwartz
Track Posts by eschwartz via RSS