Hi,
ColdFusion newbie, converting from PHP to CF!
Anyway I have query which I'm stuck on.
What I have is the following:
cat_name=Holiday-Guides-9
But I would like to extract the number so I get 9, I've had a go, but I get 1 which is not correct. How do I go about getting 9?
Here's my version:
<cfset set_catid=ReFindNoCase("[^0-9]*","#url.cat_name#")>
<cfoutput>
#set_catid#
</cfoutput>
Thanks
Oz.
ColdFusion newbie, converting from PHP to CF!
Anyway I have query which I'm stuck on.
What I have is the following:
cat_name=Holiday-Guides-9
But I would like to extract the number so I get 9, I've had a go, but I get 1 which is not correct. How do I go about getting 9?
Here's my version:
<cfset set_catid=ReFindNoCase("[^0-9]*","#url.cat_name#")>
<cfoutput>
#set_catid#
</cfoutput>
Thanks
Oz.