On Fri, Nov 23, 2012 at 5:39 PM, Jim Tambling <[email protected]> wrote: > Hi, > > > > I have created a mandatory custom field for IP addresses. I use a regex to > ensure it is a valid IP address. Is there any way of hiding the “Input must > match” portion? At present my CF looks like this: > > > > Source IP > > Enter one value > > Input must match > \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b > > > > Which is a bit unsightly. Anyway to hide the regex? >
Use a comment in the beginning of the regexp. Take a look at how mandatory regexp looks. > Regards, Jim > > > > P.S. RT 3.8.2 > > > -------- > We're hiring! http://bestpractical.com/jobs > -- Best regards, Ruslan. -------- We're hiring! http://bestpractical.com/jobs
