chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Regex fail?


From: Matt Welland
Subject: [Chicken-users] Regex fail?
Date: Thu, 29 Oct 2015 21:12:44 -0700

(string-match "^([^\n]*)(\n.*|).*$" "This\nis \n")
=> #f

Using Ruby as comparison:

irb(main):001:0> "This\nis \n".match(/^([^\n]*)(\n.*|)$/)
=> #<MatchData "This\nis " 1:"This" 2:"\nis ">



reply via email to

[Prev in Thread] Current Thread [Next in Thread]