Ok, I have a string that looks like this:
/web/path/to/myfile.jpg JPEG 1280x1024 DirectClass 8-bit 95kb 0.3u 0:01
It's an imagemagic identification of a file that my user is uploading. myfile.jpg is
CFFILE.clientfile.
I need to go through this thing and get the 1280x1024 out. I could come up with a way
to do this w/o regular expressions, but it wouldn't be as flexible as I'd like it to
be.
I've tried this:
<cfset location = REFind("/d+x/d+", mystring)>
And this:
<cfset start = REFind("[/d+]x[/d+]", mystring)>
Doesn't seem to work. Any ideas?
-----
Willy Ray
Web Applications Developer
Certified Advanced ColdFusion Developer
Westminster College
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.