mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
446 B
446 B
Block Regular Expressions
Similar to block strings and comments, CoffeeScript supports block regexes — extended regular expressions that ignore internal whitespace and can contain comments and interpolation. Modeled after Perl’s /x
modifier, CoffeeScript’s block regexes are delimited by ///
and go a long way towards making complex regular expressions readable. To quote from the CoffeeScript source:
codeFor('heregexes')