Search found 2 matches

by Masutin
Thu Jul 25, 2024 6:15 pm
Forum: General
Topic: TextPad Help says regex $0 for selected text corresponds to & in old syntax but the Find function can't match it
Replies: 4
Views: 5005

Thanks for your replies! If you please could suggest a replacement expression for putting, say, brackets around (a few lines of) selected text. Or just a find string to match any selected text. Sorry for unintended confusion. I looked for an alternative to \& in a wrong place: Replacement Format ...
by Masutin
Wed Jul 24, 2024 6:22 pm
Forum: General
Topic: TextPad Help says regex $0 for selected text corresponds to & in old syntax but the Find function can't match it
Replies: 4
Views: 5005

TextPad Help says regex $0 for selected text corresponds to & in old syntax but the Find function can't match it

Example:
  1. Not working.
    Find:

    Code: Select all

    $0
    Replace with:

    Code: Select all

    [$&]
    \& will still be matched in new syntax, only for text without line breaks.
  2. Old syntax.
    Find:

    Code: Select all

    \&
    Replace with:

    Code: Select all

    [&]
P.S. No folding functions in TextPad?