跳到主要内容

enum RegexFlags

所在文件: /#e/RegexFlags.gs

枚举值

名称说明
DEFAULT0Uses the standard formatting rules to replace matches those used by ECMAScript s replace method This constant has a value of zero
NOT_BOL1The first character is not considered a beginning of line does not match
NOT_EOL2The last character is not considered an end of line does not match
NOT_BOW4The escape sequence does not match as a beginning of word
NOT_EOW8The escape sequence does not match as an end of word
ANY16Any match is acceptable if more than one match is possible
NOT_NULL32Empty sequences do not match
CONTINUOUS64The expression must match a sub sequence that begins at the first character Sub sequences must begin at the first character to match
PREV_AVAIL256One or more characters exist before the first one match not bol and match not bow are ignored
FORMAT_DEFAULT0Uses the standard formatting rules to replace matches those used by ECMAScript s replace method This constant has a value of zero
FORMAT_SED1024Uses the same rules as the sed utility in POSIX to replace matches
FORMAT_NO_COPY2048The sections in the target sequence that do not match the regular expression are not copied when replacing matches
FORMAT_FIRST_ONLY4096Only the first occurrence of a regular expression is replaced

返回