Thread
:
A regex question
View Single Post
05-01-2012, 11:44 AM
#
22
Timur
Connoisseur
Posts: 54
Karma: 37363
Join Date: Aug 2011
Location: Istanbul
Device: EBW1150, Nook STR
Changing this character class in the search pattern
Code:
[^\s]
to
Code:
[^\s-]
capitalizes the first letter after a hyphen too.
To make a "whole word" match enclose your search pattern between word boundary anchors
\b
, like this:
Code:
search: \bnut\b replace: Nut
Timur
View Public Profile
Find More Posts by Timur
Track Posts by Timur via RSS