(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 ">
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to