[PD] regular expressions (symbol splitting)
Tom Schouten
tjhs at mac.com
Wed Feb 27 13:59:42 CET 2002
thanks for the reply but i dont see how l2s can solve this prob...
meanwhile, i wrote a quick and dirty extern symsplit that will split a
symbol at the first '-'
i attached it, if anyone is interested
later
tom
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: symsplit.c
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20020227/37586ccb/attachment.asc>
-------------- next part --------------
On woensdag, februari 27, 2002, at 11:15 , _-?-_ wrote:
>
> maybe list2symbol and bakc a la split / / ..
>
> Tom Schouten about [PD] regular expressions (symbol splitting) / Today
>
> |
> |hi list,
> |
> |i was wondering if there is a way to evaluate regular expressions on a
> |symbol in pd.
> |
> |what i want to do is split a composite symbol, i.e:
> |
> |"this-is-my-symbol"
> |
> |into parts
> |
> |"this", "is", "my", "symbol"
> |
> |it would be nice to have a full perl style regexp extern, but for my
> |application it suffices to split a symbol into two parts at the first
> |occurance of some separator character, i.e "-"
> |
> |maybe somebody already implemented this?
> |
> |tom
> |
>
> --
> X d v . o
> 7 G
>
More information about the Pd-list
mailing list