Wild card searches
Alex Rice
alrice at ARCplanning.com
Wed Jul 23 16:12:03 EDT 2003
On Wednesday, July 23, 2003, at 02:41 PM, Mark Powell wrote:
> Is there any way to do wild card searches of the following pseudo-form?
>
> Look at a bunch of text and delete all chunks bracketed by "!" and "/!
> (for example, it should delete both !m/! and !030924/! and leave
> nothing
> behind.
>
> Thanks in advance
replaceText() takes a regular expression as it's 2nd parameter
put replaceText("xxxx!030924/!yyyy", "!.+/!", empty)
-- says xxxxyyyy
The ".+" means one or more characters. If you get a Perl reference you
can see how to advanced regular expressions with Rev.
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com
More information about the use-livecode
mailing list