E
Erik Veenstra
Ruby 1.8.0 on win32:
1: ruby -e 'p "#abc#def#".gsub(/#$/, " ")'
-e:1: unterminated string meets end of file
-e:1: syntax error
2: ruby -e 'p "#abc#def#".gsub(/#/, " ")'
" abc def "
3: ruby -e 'p "#abc#def#".gsub(/\#$/, " ")'
"#abc#def "
What's wrong with the first one? I expected the first one to
behave like the third one.
gegroet,
Erik V.
1: ruby -e 'p "#abc#def#".gsub(/#$/, " ")'
-e:1: unterminated string meets end of file
-e:1: syntax error
2: ruby -e 'p "#abc#def#".gsub(/#/, " ")'
" abc def "
3: ruby -e 'p "#abc#def#".gsub(/\#$/, " ")'
"#abc#def "
What's wrong with the first one? I expected the first one to
behave like the third one.
gegroet,
Erik V.