WstringReplaceAll doesn't replace "

Ask questions about how to create a script or swap scripts with other users.
Post Reply
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

WstringReplaceAll doesn't replace "

Post by pjj »

This code works fine--unless you use """ (i.e. the entity) as a search term:

Code: Select all

Document.SelectAll;
s = Document.SelText;
s = ScriptUtils.WstringReplaceAll(s, """, "whatever");
Document.SelText = s;
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply