View Single Post
Old 10-04-2015, 12:22 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,821
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC the regex engine cannot do reverse searches with back references, since at the time of the back reference, the group has not yet matched.

You either need to replace \1 with [hH][1-6] or use direction down.
kovidgoyal is online now   Reply With Quote