House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / Regular Expressions (RegEx)

Count word in one line and <enter>

Author:
Badrul Anuar
07/08/2009 07:30 AM

Hi. I have a simple question. I would like to count how many word in a single line. For example <text> I have an apple. The apple is green. I have an apple. </text> Let's say that if I use a simple regex. (apple), I will receive 3 match. Since there is only two lines,  how to get the counter to count only 2. The <enter> is the delimiter. Thank you


Search regex

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29