Re: filter? replace? wildcard? reg exp? help please!

2017-05-19 Thread Thierry Douez via use-livecode
​ Is there life without internet for one week? - lucky you are connected to the world again! > Tiemo > ​Hallo Tiemo, Except some hurdles with the administration ( sold my old car and bought a new one) plus being insulted by a couple of stressed and egotist people for not answering sooner, I

AW: filter? replace? wildcard? reg exp? help please!

2017-05-19 Thread Tiemo Hollmann TB via use-livecode
LiveCode <use-livecode@lists.runrev.com> Cc: Thierry Douez <th.do...@gmail.com> Betreff: Re: filter? replace? wildcard? reg exp? help please! > > >> put "1 [A] 2 [B] 3." into tText >> put removeBrackets( tText) >> > > I see that the middle sect

Re: filter? replace? wildcard? reg exp? help please!

2017-05-19 Thread Thierry Douez via use-livecode
> > >> put "1 [A] 2 [B] 3." into tText >> put removeBrackets( tText) >> > > I see that the middle section is omitted with my regex, so I forgot to > make it non-greedy. But I've forgotten how to do that, something about a > question mark, I think? ​Sorry about the delay, we had a thunderstorm

Re: filter? replace? wildcard? reg exp? help please!

2017-05-12 Thread J. Landman Gay via use-livecode
On 5/12/17 3:37 PM, Thierry Douez via use-livecode wrote: This should be a one-line command! I've typed this post with the new Opera browser ??? Another try with 2 lines: put "1 [A] 2 [B] 3." into tText put removeBrackets( tText) ​Better? Yes. It's odd that a browser would reformat it

Re: filter? replace? wildcard? reg exp? help please!

2017-05-12 Thread Thierry Douez via use-livecode
> > >> >> >>> function removeBrackets pString >>> return replacetext(pString,"\[.*\]",empty) >>> end removeBrackets >>> >> ​​ >> >> What would be the result of next line:? >> >> *put* removeBrackets >> ​( ​ >> "1 [A] 2 [B] 3." >> ​) >> > > An error. I did warn about my limited regex skills. :)

Re: filter? replace? wildcard? reg exp? help please!

2017-05-12 Thread J. Landman Gay via use-livecode
On 5/12/17 2:08 AM, Thierry Douez via use-livecode wrote: ​Hi, function removeBrackets pString return replacetext(pString,"\[.*\]",empty) end removeBrackets ​​ What would be the result of next line:? *put* removeBrackets ​( ​ "1 [A] 2 [B] 3." ​) An error. I did warn about my

Re: filter? replace? wildcard? reg exp? help please!

2017-05-12 Thread Thierry Douez via use-livecode
​Hi, > > function removeBrackets pString > return replacetext(pString,"\[.*\]",empty) > end removeBrackets > > ​​ What would be the result of next line:? *put* removeBrackets ​( ​ "1 [A] 2 [B] 3." ​) Kind regards, Thierry ​ Thierry Douez

Re: filter? replace? wildcard? reg exp? help please!

2017-05-10 Thread Nicolas Cueto via use-livecode
> Totally OT, but is this Dante, in Spanish?? Yes, and yes. From the verse translation of Ángel Crespo. -- Nicolas Cueto On 10 May 2017 at 19:57, Graham Samuel via use-livecode < use-livecode@lists.runrev.com> wrote: > Totally OT, but is this Dante, in Spanish?? > > Just askin’. I am not good

Re: filter? replace? wildcard? reg exp? help please!

2017-05-10 Thread Graham Samuel via use-livecode
Totally OT, but is this Dante, in Spanish?? Just askin’. I am not good with languages, as you can probably tell. Graham > On 10 May 2017, at 06:33, J. Landman Gay via use-livecode > wrote: > > On 5/9/17 11:16 PM, J. Landman Gay via use-livecode wrote: >> On

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread J. Landman Gay via use-livecode
On 5/9/17 11:16 PM, J. Landman Gay via use-livecode wrote: On 5/9/17 10:41 PM, Nicolas Cueto via use-livecode wrote: Given this snippet... --- CANTO XXXIV CÍRCULO IX: TRAIDORES. «Vexilla regis prodeunt[307] del Abismo hacia nosotros[308], mas

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread Nicolas Cueto via use-livecode
​Thank you everyone. Went with ​Jacqueline's, cause fastest. -- N. Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread J. Landman Gay via use-livecode
On 5/9/17 10:41 PM, Nicolas Cueto via use-livecode wrote: Given this snippet... --- CANTO XXXIV CÍRCULO IX: TRAIDORES. «Vexilla regis prodeunt[307] del Abismo hacia nosotros[308], mas delante mira 3—dijo el maestro— y los verás tú mismo.»

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread Phil Davis via use-livecode
There is probably an easier way, but this works: on mouseUp put "]" & field 1 into tText set the lineDelimiter to "[" set the itemDelimiter to "]" repeat for each line tLine in tText put item 2 to -1 of tLine after tNewText end repeat

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread Peter Bogdanoff via use-livecode
Try— put your text into tText, then repeat forever if offset("[",tText) is not empty then delete char (offset("[",tText)) to (offset("]",tText)) of tText else exit repeat end repeat On May 9, 2017, at 8:54 PM, Peter Bogdanoff via use-livecode

Re: filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread Peter Bogdanoff via use-livecode
use offset. Peter On May 9, 2017, at 8:41 PM, Nicolas Cueto via use-livecode wrote: > Given this snippet... > > --- > CANTO XXXIV > CÍRCULO IX: TRAIDORES. > «Vexilla regis prodeunt[307] del Abismo > hacia

filter? replace? wildcard? reg exp? help please!

2017-05-09 Thread Nicolas Cueto via use-livecode
Given this snippet... --- CANTO XXXIV CÍRCULO IX: TRAIDORES. «Vexilla regis prodeunt[307] del Abismo hacia nosotros[308], mas delante mira 3—dijo el maestro— y los verás tú mismo.» --- ... how