View Single Post
Old 08-27-2016, 09:14 AM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,823
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Turtle91 View Post

The only differences I've noted is that when in code view the clip (ex: "\1") will surround selected text with double quotes, while if you are in the find or replace fields it will replace the selected text with exactly "\1" .

eg.
the clip: <em>\1</em>

In code view with
<p>&nbsp;</p>
selected, the clip will produce:
<em><p>&nbsp;</p></em>

In the find or replace fields anything selected will be replaced by:
<em>\1</em>
That is because you didn't set the search properly.
  • First at all, you need to set the search mode as "Regex".
  • After that, in the "Find:" field you need to write the words to replace between (\byour words here\b).

Following your example, you need to write in the "Find:" field, the following:

Code:
(\b<p>&nbsp;</p>\b)
and after that you'll get

Code:
<em><p>&nbsp;</p></em>
By the way, the correct code would be <p><em>&nbsp;</em></p>

Regards
Rubén

Last edited by RbnJrg; 08-27-2016 at 09:25 AM.
RbnJrg is offline   Reply With Quote