- AuthorPosts
- June 17, 2007 at 12:45 pm #4427userParticipant
can you tell me please how to match text that is not preceded by begingin-of-line + a or b
also, I want the above to be non case sensitive, but in another part of the script I need case sensitivity, is there a way to determine it two times in one script?
also can you tell me please why this is wrong
document.selection.Replace(“^”, “Α”, eeFindReplaceRegExp | eeFindReplaceQuiet | eeReplaceAll);
I want to replace when its in the begining of a line with A
and last, can I combine these to in one script?
document.selection.Replace(“([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ])<([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ])", "1κ2", eeFindReplaceCase | eeFindReplaceRegExp | eeFindReplaceQuiet | eeReplaceAll);
document.selection.Replace(“b<([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ])", "κ1", eeFindReplaceCase | eeFindReplaceRegExp | eeFindReplaceQuiet | eeReplaceAll); I mean to add the b to the first script?
thanksJune 17, 2007 at 11:48 pm #4431Yutaka EmuraKeymasterYou will need to use “^\” instead of “^”. Regular Expressions expects , and JavaScript also escapes backslashes, so it needs to be \. If this does not solve your other questions, please let me know. Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.