Ruby regular expressions

From EggeWiki

Jump to: navigation, search

Comments are one of the great, yet little used, features of modern regular expression engines. Consider the following:

"Ruby is fun" =~ /(?#a)r(?#e you able to )u(?#nderstand what this )b(?#eautiful, yet sill)y(?# regular expression will match?)/i
Personal tools
Travelling Salesman

Get the app!