You can use the REFind / REFindNoCase but add the attribute of:


returnsubexpressions


Optional. Boolean. Whether to return substrings of reg_expression, in arrays named len and pos:

* True: if the regular _expression_ is found, the first array element contains the length and position, respectively, of the first match.
If the regular _expression_ contains parentheses that group subexpressions, each subsequent array element contains the length and position, respectively, of the first occurrence of each group.
If the regular _expression_ is not found, the arrays each contain one element with the value 0.
* False: the function returns the position in the string where the match begins. Default.

-----Original Message-----
From: Damien McKenna [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 3:11 PM
To: CF-Talk
Subject: REFind alternative?

I need to search for a regular _expression_ and return the data found as
opposed to the position it was found at.  Is there an easy way to do
that without doing an elaborate series of Mid and REFind statements?  
Thanks.
--
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to