OK, a couple of seemingly off-topic questions: What version of Cold Fusio (CF5.0, CFMX, etc) How long is the string you are searching through (appromiate max length in KB)
Jerry Johnson >>> [EMAIL PROTECTED] 10/21/04 10:37AM >>> Using <cffile action="read" file="c:\temp\temp.1" variable="test"> to read an external file to a variable called "test" The external file I'm reading in is not always the same (number of lines, text, etc.). What I do know is the file will always contain the text "Number users:" with some text following it which I need to grab and set into another variable "users" So the idea is to loop through the variable "test" and once I find the text "Number users:" grab the information after the ":" up to the period "." and set "1-20" into the variable "users" I have the loop part but not sure of the correct syntax to pluck out everything from the ":" to the end of the "." Example: blah...blah blah...blahblah...blah blah...blah blah...blah blah...blah Number users: 1-20. blah...blah blah...blah ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:411 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
