Thread
:
Quick Regex Question
View Single Post
03-05-2012, 08:40 AM
#
2
DiapDealer
Grand Sorcerer
Posts: 28,614
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You have no capture groups in your search expression. So it doesn't know
what
to replace and what to keep.
Code:
(\w)\?(\w)
Code:
\1-\2
should then replace the "?" with the "-" and keep the two original word-characters preceding and following.
DiapDealer
View Public Profile
Find More Posts by DiapDealer
Track Posts by DiapDealer via RSS