1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/sections/heregexes.md

446 B
Raw Blame History

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 Perls /x modifier, CoffeeScripts block regexes are delimited by /// and go a long way towards making complex regular expressions readable. To quote from the CoffeeScript source:

codeFor('heregexes')