View Single Post
Old 05-16-2018, 04:47 PM   #1
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)
Transforming a marked text

Hi

It is possible I misunderstood something and what I wish to do is not possible.

I marked -yellow highligh- short pieces of text (of variable length), one for each html file, about 30 overall, and I intended to give them a specific span (i'ts for the small text which follows a drop-cap and is usually wirtten in small-caps).

Though it is possible to select "marked text" (like "all text files") I do not know how to write what I wish to do in the fields Search and Replace.

It seems I can't write something like this:

<marked text> (nor the usual (.*?))
<span class="smcp">\1</span>

I know I can perform, for all marked text, a standard regex, changing a tag for another one, but this is slightly different.

Last edited by roger64; 05-16-2018 at 05:18 PM.
roger64 is offline   Reply With Quote