Embedded quotation marks within Replace() or AddLine()

22 views
Skip to first unread message

johnc...@gmail.com

unread,
Jan 8, 2026, 2:40:14 PMJan 8
to SemWare TSE Pro text editor
I want to use a macro command to replace some text that contains the double quotation mark. For example:
Search for an instance of "text1" and replace it with "text2". Both text1 and text2 need to be enclosed within the quotation marks.
Will Replace(""text1"",""text2"") work, or do I need to do something about the nested quotation marks?

I might also want to use AddLine(""text3"") and assume solution will be the same.

Carlo Hogeveen

unread,
Jan 8, 2026, 2:45:38 PMJan 8
to sem...@googlegroups.com

The simplest solution is to use single quotation marks as outer quotation marks, for example:
Replace('"text1"','"text2"', '')
AddLine('"text3"')

Carlo



John Wood

unread,
Jan 8, 2026, 3:24:24 PMJan 8
to sem...@googlegroups.com
Thank you.

--

---
You received this message because you are subscribed to a topic in the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/semware/4LggYO7T9jg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/000901dc80d7%245ac0c8e0%2410425aa0%24%40ecarlo.nl.
Reply all
Reply to author
Forward
0 new messages