> <a href="([^"]*)"
Try <a href="([^"]+)"
* means 0 or more
+ means 1 or more
? Means 0 or 1
One of the key things to understand about regexs is that they are
greedy.
That means that they get processed from left to right, and each criteria
will claim as much as it can. The net result is that saying .* will
match everything, and any criteria that follow it will never get a
chance to operate.
Often times this is not how you want things to work, you would prefer
the opposite to happen. Perl ( and hence cfmx ) has support for a "not
greedy" operator, you just stick ? After the + or *
Eg: your orignial regex <a href=".*?" should now work
but you might want <a href=".+?" to skip the
empty urls
Jon.
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/