nodejs > NodeJS 6.7.0 regex match

Testing nodejs regex match

author @regular.express

Image on regexpress/nodejs

properties

  • * string regex
    Regular Expression.
  • boolean global
    find all matches rather than stopping after the first match
  • boolean ignore
    ignore case
  • boolean multiline
    treat beginning and end characters (^ and $) as working over multiple lines (i.e., match the beginning or end of each line (delimited by or ), not only the very beginning or end of the whole input string)
  • boolean unicode
    treat pattern as a sequence of unicode code points
  • boolean sticky
    matches only from the index indicated by the lastIndex property of this regular expression in the target string (and does not attempt to match from any later indexes).

Sharings