[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Multiline regexp matching



Hi,

I've just been playing with the new regexp support in String.  It's
great but is there a way to enable multiline mode? At the moment it
won't match over multiple lines:

/* multi
   line
   comment
*/

Document.current.string.findRegexp("/\\*.*");
// [ [ 2, /* multi ] ]

Document.current.string.findRegexp("/\\*.*\\*/");
// nil


thanks,

Nathaniel