S-expressions: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Added support for negative numbers.) |
(Strings like foo# wouldn't work, because /b would cut the # I really don't know why it was after the num.) |
||
Line 2,292: | Line 2,292: | ||
(?P<brackl>\()| |
(?P<brackl>\()| |
||
(?P<brackr>\))| |
(?P<brackr>\))| |
||
(?P<num>\-?\d+\.\d+|\-?\d+) |
(?P<num>\-?\d+\.\d+|\-?\d+)| |
||
(?P<sq>"[^"]*")| |
(?P<sq>"[^"]*")| |
||
(?P<s>\ |
(?P<s>[^(^)\s]+) |
||
)''' |
)''' |
||