View Single Post
Old 09-21-2020, 04:50 AM   #10
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

I comeback to you on the dot question.

I tried to use a set of two regex, red+ and red-, the first one to highlight the dots, the second one to suppress all highlighting (see below). However, the first regex also highlights the dots in the <head> of the xhtml files which is unpleasant. Is there a way to avoid this side-effect?


searches
0
case_sensitive false
dot_all false
find "(\\.)"
mode "regex"
name "red+"
replace "<span style=\"background: red\">\\1</span>"
1
case_sensitive false
dot_all false
find "<span style=\"background: red\">(.*?)</span>"
mode "regex"
name "red-"
replace "\\1"
version 1
roger64 is offline   Reply With Quote