Hi Xtian, how about this: s←"444This4is4a4444test44with44444lot4of4blanks4444at4beginning4and444end444444" from←"444" to←"5" ↑⍎')HOST echo "',s,'" | sed s/',from,'/',to,'/g' 5This4is4a54test44with544lot4of4blanks54at4beginning4and5end55 I have replaced the ^ in your example because it (and some other characters) have a special meaning in regular expressions. But the special characters can be easily quoted in APL if needed, for example: s←"^^^This^is^a^^^^test^^with^^^^^lot^of^blanks^^^^at^beginning^and^^^end^^^^^^" ((s='^')/s)←⊂'\^' ⊃,/s \^\^\^This\^is\^a\^\^\^\^test\^\^with\^\^\^\^\^lot\^of\^blanks\^\^\^\^at\^beginning\^and\^\^\^end\^\^\^\^\^\^ /// Jürgen On 06/21/2016 05:12 AM, Christian
Robert wrote:
Hi, it's not a bug but a request for help, |
- [Bug-apl] Not a bug, need help coding search&replace... Christian Robert
- Re: [Bug-apl] Not a bug, need help coding search&am... Louis Chretien
- Re: [Bug-apl] Not a bug, need help coding searc... Elias Mårtenson
- Re: [Bug-apl] Not a bug, need help coding search&am... Juergen Sauermann
- Re: [Bug-apl] Not a bug, need help coding searc... Christian Robert
- Re: [Bug-apl] Not a bug, need help coding searc... Christian Robert
- Re: [Bug-apl] Not a bug, need help coding s... Xiao-Yong Jin
- Re: [Bug-apl] Not a bug, need help codi... Elias Mårtenson
- Re: [Bug-apl] Not a bug, need help... Christian Robert
- Re: [Bug-apl] Not a bug, need ... Xiao-Yong Jin
- Re: [Bug-apl] Not a bug, n... Christian Robert
- Re: [Bug-apl] Not a bug, need ... Elias Mårtenson
- Re: [Bug-apl] Not a bug, n... Juergen Sauermann
- Re: [Bug-apl] Not a bug, n... Louis Chretien