[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Not a bug, need help coding search&replace on a vector
From: |
Louis Chretien |
Subject: |
Re: [Bug-apl] Not a bug, need help coding search&replace on a vector |
Date: |
Tue, 21 Jun 2016 09:46:51 -0400 |
Looks like a job for regexp…
Too bad APL doesn’t have one.
> On Jun 20, 2016, at 23:12, Christian Robert <address@hidden> wrote:
>
> Hi, it's not a bug but a request for help,
>
>
> suppose
> s="^^^This^is^a^^^^test^^with^^^^^lot^of^blanks^^^^at^beginning^and^^^end^^^^^^"
> suppose from="^^^"
> suppose to="^"
>
> I need a function who can replace ("^^^" to "^"), or ("^" to "^^^^^^^^") or
> ("" to "blabla" with limits of source size) ie: without being lost in
> infinite loop.
>
>
>
> "s" is a character vector, "from" is a character vector, and "to" is a
> character vector,
> both "s", "from" and "to" can be "".
>
>
>
> I'm pretty sure this idiom already exist.
>
> if you can help me, please do.
>
> Xtian.
>
>
>
>
>
---
Louis Chrétien
address@hidden
- [Bug-apl] Not a bug, need help coding search&replace on a vector, Christian Robert, 2016/06/20
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector,
Louis Chretien <=
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Juergen Sauermann, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Christian Robert, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Christian Robert, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Xiao-Yong Jin, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Elias Mårtenson, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Christian Robert, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Xiao-Yong Jin, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Christian Robert, 2016/06/21
- Re: [Bug-apl] Not a bug, need help coding search&replace on a vector, Elias Mårtenson, 2016/06/21