Good answers.

I think you are going to want to use a regular express, or regex. (This is basically a 
smart search that matches patterns within a string.)

So, in pseudo-English, we want to:
Search the string for the string "Number users:" and grab anything between that string 
and the next . (period).

So in cf:
<cfset numberUsers=rereplacenocase(test,".*Number users:([^.]*)\..*","\1")>

And back to english:

.* = zero or more characters
Number users: = literal string "Number users:"
([^.]*)
    () = grab whatever is in here , and stores it for later use
    [^.]* = zero or more characters that are not a period charcter
\. = a period character
.* = zero or more characters

Then we replace the whole string with what we found in the () using the \1 variable.

And end up with just what was between the Number users: and the . 

Since there was a space after the :, we probably want to trim the numberUsers variable 
to drop that leading space.

Does this help? make any sense at all?

Jerry Johnson




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=35

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:413
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to