For some reason I thought that to have a multiline regex, /m needed to
be used, but…
“a\rb” =~ /a.b/
=> 0
???
-rp
For some reason I thought that to have a multiline regex, /m needed to
be used, but…
“a\rb” =~ /a.b/
=> 0
???
-rp
On 2010-01-29, Roger P. [email protected] wrote:
“a\rb” =~ /a.b/
=> 0
\r doesn’t break lines, \n does.
-s
\r doesn’t break lines, \n does.
Oh ok thanks!
-r
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs