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 ...
Search found 2 matches
- 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: 7638
- 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: 7638
TextPad Help says regex $0 for selected text corresponds to & in old syntax but the Find function can't match it
Example:
- Not working.
Find:Replace with:Code: Select all
$0\& will still be matched in new syntax, only for text without line breaks.Code: Select all
[$&] - Old syntax.
Find:Replace with:Code: Select all
\&Code: Select all
[&]