[rt-users] Mask custom field?

Todd Chapman todd at chaka.net
Mon Jul 31 13:03:15 EDT 2006


On Mon, Jul 31, 2006 at 09:55:18AM -0700, Schultz, Eric wrote:
> > Hi, Is anyone know how to setup CustomField mask, such
> > as IP address ###.###.###.###? Thanks, Zhiming.
> 
> Are you talking about the validation feature of 3.6?  If so, I believe
> that another user on the list had provided a link for a whole bunch of
> premade regular expressions, but you'd have to search the archives for
> what this was.
> 
> Else, I imagine something like this would work:
> 
> ^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$

And there are callbacks for CF display/edit
that are handy for this too.

> 
> Eric Schultz
> United Online
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 
> 
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html



More information about the rt-users mailing list