Thread: Equivalent to &
View Single Post
Old 11-29-2013, 04:26 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,124
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by linzerkipferl View Post
When using the regex-function with Office.org, you can insert the character & in the "Replace"-line, which means that every character found according to the "Search"-order stays the same.

(e.g. if you search for [0-9]+ and replace with (&) then every number in the text will be within brackets)

& does not work with Sigil. Does anybody know if there exists an equivalent order for Sigil?

Thanks in advance!
Sigil (and Calibre) use PCRE REGEX

search (\d+) = capture any quantity of DIGITS
replace \1
theducks is offline   Reply With Quote