: What does  [^>]*? Mean exactly?  I seem to be using something similar in
: my old code but can't remember what it means.
:
: I know perl regular expressions and this doesn't seem to make sense.
: [^>] means expression starting with a > then * is a modifier meaning
: zero or more and ? is a modifier meaning 0 or 1 times.  I don't
: understand how that is legal regex.  Is CF regex that much different
: then perl?

Actually, in both Perl and CF, the carat "^" at the beginning of a class
(char group in brackets) means to negate the class -- that is, if
[>]*
means match however many ">" characters, then
[^>]*
means match however many characters aren't ">" -- this essentially means
grab everything to the end of the tag, in this case.

The carat is also used by CF to mark the beginning of the string and by Perl
to mark the beginning of the line (assuming you haven't messed with the
default delimiters).

HTH.



  --Ben Doom
    Programmer & General Lackey
    Moonbow Software

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to