Tag Archives: type

Using regular expressions with the CFPARAM tag in ColdFusion

In a previous example, “Setting the map type on a Google Map using ColdFusion”, we saw how you could set the map type on a Google Map in ColdFusion by using the <CFMAP> tag and setting the type attribute to “map”, “satellite”, “hybrid”, “terrain”, or “earth”.

The following example shows how you can specify a regular expression for the <CFPARAM> tag in ColdFusion by setting the type attribute to “regex” or “regular_expression” and then specifying the pattern attribute to a regular expression that the parameter must match.

Continue reading