Actions
Bug #1197
closedregular expression never finishes
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
Description
=begin
'a foobarfoobar foobarfoobar"'.scan(/^(([^"\n]*|"([^"]|"")+")+)($)/m)
I tried with Debian-testing, Gentoo-stable Ruby1.8 and Debian-testing Ruby1.9, the results are same: the command never finishes, CPU usage 100%.
Is this a bad regular expression? If it is, how can I know?
I am neither a master nor a fan of PHP, I just tried it before filing a bug because of curiosity:
which exits normally. Not in Ruby, with or without the multiline.
=end
Files
Actions
Like0
Like0Like0