From: 7stud -- Date: 2011-05-03T03:28:24+09:00 Subject: Re: Formatting a long regex: can a character class [] be split over lines? It's also possible to escape a newline: name_format = /\A[A-Za-z\d\ \!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]\z/x but then you can't indent the second line or else your regex will contain a bunch of spaces. -- Posted via http://www.ruby-forum.com/.