In EmEditor help system, there are some Javascript samples of \J in Replacement of Regular Expression.
http://www.emeditor.org/en/howto_search_replacement_expression_syntax.html
Replacement Expression Meaning
\J "\0" + "abc" joins the matched string and "abc"
\J substr( "\0", 0, 5 ) returns the first 5 characters of the matched string
I try the first replacement expression \J “\0” + “abc” , it works very well. But when I try the second one,there’s an error dialog “macro error: ‘substr’ is not defined”. What’s reason for this error?
Another question, besides ‘substr()’,if possible to use other JS Functions, such as getDate(),getYear(),…….Thanks!