I have the same problem with REFind

>From livedocs
REFind(reg_expression, string [, start ]   [, returnsubexpressions ] )
(and comparatively, Find(substring, string [, start ]))

Seems like every other string function takes the string parameter
first.. Replace, ReRep, Left, Right, Mid, Encrypt, Decrypt,
ListValueCount, RepeatString, ReplaceList, and of course all the
functions that have NoCase companions).

ListFind even takes the "string" to be searched as the first
parameter, as does ValueList.

But Find and Refind take the string to search for, first.

How very... odd.

On 8/11/05, Ben Doom <[EMAIL PROTECTED]> wrote:
> Depending on your line breaks and whatnot....
> 
> linebreak = chr(10);
> 
> lines = refind(string, "(^|#linebreak#)\s*(#linebreak#|$)", 1);
> 
> My syntax on refind may be off -- I can never keep it straight for some
> reason.
> 
> --Ben
> 
> Ian Skinner wrote:
> > What would a regex expression to find lines with any type and amount of 
> > white space characters but nothing else look like?
> >
> >
> > --------------
> > Ian Skinner
> > Web Programmer
> > BloodSource
> > www.BloodSource.org
> > Sacramento, CA
> >
> > "C code. C code run. Run code run. Please!"
> > - Cynthia Dunning
> >
> > Confidentiality Notice:  This message including any
> > attachments is for the sole use of the intended
> > recipient(s) and may contain confidential and privileged
> > information. Any unauthorized review, use, disclosure or
> > distribution is prohibited. If you are not the
> > intended recipient, please contact the sender and
> > delete any copies of this message.
> >
> >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:21:917
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to