perl regex modifiers

Alex Rice alrice at ARCplanning.com
Thu Jul 24 22:30:00 EDT 2003


On Thursday, July 24, 2003, at 06:38  PM, Mark Brownell wrote:
>
> Thanks for that link.
>
> Having fun with matchText &  matchChunk  regex repeat loops. Is there 
> a way to create a matchChunk regex that picks up all instances within 
> a document that may contain several of the same items? In the example 
> I can get it to return the char position for the first one that it 
> finds. I was just wondering if there was a regex way to return a 
> delimited list of all similar  items found.

I'm not sure. I'm trying to connect my knowledge of Perl regular 
expressions onto the functions that Revolution exposes.

BTW I guessed right about the PCRE library. It's what Revolution uses. 
Here is the documentation for PCRE: http://www.pcre.org/pcre.txt. 
Perhaps we could use the revolution regex engine better with this 
knowledge.

# cd /Applications/Revolution 2.0.1/Revolution.app/Contents/MacOS
# strings < Revolution | grep -i pcre
this version of PCRE is not compiled with PCRE_UTF8 support
_pcre_compile
_pcre_exec
_pcre_free
_pcre_fullinfo
_pcre_info
_pcre_malloc
_pcre_version
_FSpCreate
_FSpCreateResFile
__Z21pcre_posix_error_codePKc
_pcre_default_tables


Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com




More information about the use-livecode mailing list