I wrote some Java Regular Expression get functions for this very
purpose:

Case Insensitive:
http://www.bennadel.com/snippets/11-JREGetNoCase-strText-strRegExp-.htm 

Case Sesnsitive:
http://www.bennadel.com/snippets/5-JREGet-strContent-strRegExp-.htm


Keep in mind that these are JAVA regular expressions, so slight
differences in power... But for basic stuff, should all be the same.
Both functions will return an array of the matches.

Download the pages (the given link will provide downloads) to see
samples.


......................
Ben Nadel
Certified Advanced ColdFusion Developer
www.bennadel.com
 

-----Original Message-----
From: Millisa Eubanks [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 10, 2006 10:22 AM
To: CF-Talk
Subject: Extracting Data into an Array

I'm trying to find a simple way to go though a block of text and pull
out any occurace of links in that block of text.  I'm not sure if the
problems I'm having are based on the function I am using or the reqular
expression.  Currently I am using REFind("<a
[[:space:]*[:punct:]*[:alnum:]*]>", qLinkReview.TextBlock) where
qLinkReview.TextBlock is the block of text that I retreived from the
database.  The only result I am getting is 0 but I know that all of the
text blocks I am looking at have at least one link occurance.  

Once I am able to identify the links I am going to need to pull them out
and put them into an array for evaluation and possible display.  I have
no idea about how to go about this.  I would be greatful for any help I
can get.  Also, if possible could you include explinations with any code
so that I can learn something in the process.  Thanks!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256128
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to