[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] add regexp-split
From: |
Nala Ginrut |
Subject: |
[PATCH] add regexp-split |
Date: |
Thu, 29 Dec 2011 17:32:05 +0800 |
hi guilers!It seems like there's no "regexp-split" procedure in Guile.
What we have is "string-split" which accepted Char only.
So I wrote one for myself.
------python code-----
>>> import re
>>> re.split("([^0-9])", "123+456*/")
[’123’, ’+’, ’456’, ’*’, ’’, ’/’, ’’]
--------code end-------
The Guile version:
----------guile code-------
(regexp-split "([^0-9])" "123+456*/")
==>("123" "+" "456" "*" "" "/" "")
----------code end--------
Anyone interested in it?
0001-ADD-regexp-split.patch
Description: Text Data
- [PATCH] add regexp-split,
Nala Ginrut <=
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/29
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/29
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/29
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Message not available
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30