Hello everybody!
Have this problem: want to write a macros with regular expression to change all multiple spaces in a document to single spaces.
I use this line:
document.selection.Replace(‘(s){2,}’, ‘1’, eeFindReplaceRegExp | eeReplaceAll);
But when I ran this macros in the editor it says (in status bar) that it Cannot find (s){2,} anywhere in document. Note the absence of the backslash before “s” in this status message.
(I also tried to escape the backslash like this (s){2,}, then the “finding” part works, but it replaces it not with a regular space but with a character with code 01H)
Does anyone has any ideas about this problem? I would appreciate any help.