Re: find & replace
- View SourceMilan,
The tokens you can place in a find/replace string must be non-printable characters. CHaracters that are present in text.
To find specific ones, enter them in the text, select the text that includes the target character, and execute a FIND via the search menu.
The selection will display in the find window, and show you the token "^x" where x is the second part of the token, such as "p" in "^P.
To delete a line, that contains a target string, it would help to learn about regular expressions. However, if you get NoteTab 5 (upcoming, see Eric's note), you'll be able to find simple patterns using the wildcard option for replacing.
A sinple case, using regular expressions, for example, to delete a line containing the word "target" would be:
^'*target.*$ in the find pane, and nothing (empty string) in the replace pane.
The wildcard option (NT 7) might be handled with:
I'll leave the explanation for finding "this" but not "that" to one of the regexperts to explain.
--- In email@example.com, "milanboran" <milan.boran@...> wrote:
> Does anyone know all the
> tokens to represent special characters that the
> find & replace dialog accepts, e.g.
> ^T = Tab ($09)
> ^B = Page break ($0C)
> ^P = Paragraph (carriage-return/line-feed pair)
> ^C = Carriage-return ($0D)
> ^L = Line-feed ($0A)
> I am looking for
> delete line (where string to be found is in)
> delete paragraph (where string to be found is in)
> and any other you know.
> Also, how can one search for e.g.
> "this" AND NOT "that" ?
> Does the find input field accept RegEx or how should this be put in?
> Thanks a lot!