View Single Post
Old 11-14-2018, 07:55 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
The "\1" and "\2" are for replacement groups in the regex. These are defined by parentheses around sections of the pattern. You search should be:

Code:
([a-z,A-Z])-([a-z,A-Z])
But, I don't think you want the commas. With them, it will match a comma before or after a hyphen. It probably won't matter as I wouldn't expect to find that. But, it probably should be:

Code:
([a-zA-Z])-([a-zA-Z])
davidfor is offline   Reply With Quote