how about <cfif { var } contains "pics.mysite.com"> ?
On Thu, Dec 3, 2009 at 4:55 PM, Andrew Grosset <[email protected]> wrote:
>
> I'm trying to build a regular expression that only accepts images from "
> http://pics.mysite.com" (part of an antisamy policy)
>
> my expression:
>
> ^((http\:\/\/pics\.mysite\.com) + ([a-zA-Z\.]))*$
>
> the intention is to allow "http://pics.mysite.com/xxx.jpg"
>
> and disallow http://anyOtherSite.com/xxx.jpg
>
> can anyone see where I'm going wrong?
>
> Andrew
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328820
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4