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
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
>
>
>> 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
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
>
>
>>
>>
>>> 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. :)
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
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
> 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
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
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
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:
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.»
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
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
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
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
16 matches
Mail list logo