quickest way to remove text between paranthesis ?
Alex Tweedly
alex at tweedly.net
Tue Mar 22 12:02:03 EST 2005
jbv wrote:
>Hi list,
>
>I have a large variable (about 200 lines with 30 items
>in each) and I need to remove parts of some items
>(actually parts between paranthesis)...
>Is there a quick way to do that, with only 1 command
>line for instance ? Using regEx perhaps ?
>
>
Please test this thoroughly - it does what I *think* you want ...
> on mouseUp
> put URL "file:d:/Our Documents/Alex/RunRev/j.txt" into t
> put replaceText(t, "\(.*\)", "<>") into field "lockedField"
> end mouseUp
>
note that (for testing purposes) I replace the parenthesized section
with a "<>" - you probably want to change that to
put replaceText(t, "\(.*\)", "") into wherever
Currently it changes
> this (text)
> in the (file) here.
to
> this <>
> in the <> here.
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 21/03/2005
More information about the use-livecode
mailing list