Reply to post

[FAQ]Replacing multiple dots, tildes, stars etc., e.g. in MS Word DOC files

Author
Admin
Administrator
  • Total Posts : 275
  • Reward points: 0
  • Joined: 2010/11/22 00:00:00
  • Location: USA
  • Status: offline
2017/05/30 16:27:03 (permalink)

Replacing multiple dots, tildes, stars etc., e.g. in MS Word DOC files

In some text or DOC files you may find lines like these, separating parts of text:
 
....................................................................
~~~~~~~~~~~~~~~~~~~~~~~
*******************
 
To replace multiple dots with a single dot in @Voice, use menu - Settings - Edit speech, then add a new replacement as follows:
 
                Replacement type: Regular Expression (RegEx)
                Pattern: \.{2,}
                Replace: .
 
To replace it with nothing, make the “Replace” field empty. The \. In regular expression means just dot. The {2,} means when there are two or more. If you wanted the replacement to work only when there are 4 or more dots, you would use instead:
 
                \.{4,}
 
To replace multiple tildes:
 
                Replacement type: Regular Expression (RegEx)
                Pattern: ~{2,}
                Replace:
 
The “Replace” field above is empty, my suggestion. You could change replace to e.g. “multiple tildes”, then @Voice would say “multiple tildes” if it encounters ~~~~~~~.
 
For stars:
 
                Replacement type: Regular Expression (RegEx)
                Pattern: \*{2,}
                Replace:
 
and so on….

0 Replies Related Threads

    Jump to:
    © 2017 APG vNext Commercial Version 5.1