[rt-users] Regular Expressions for Custom Field Validation in RT3.6.0
Todd Chapman
todd at chaka.net
Mon Jun 26 14:10:07 EDT 2006
On Mon, Jun 26, 2006 at 09:52:42AM -0700, Schultz, Eric wrote:
> I think that may break the regex parsing in MatchPattern() in
> CustomField_Overlay.pm. Unless you are talking about doing something
> like:
>
> (?#Year)^[12]\d{3}$
>
> becomes
>
> (?#Year)(^[12]\d{3}$)?
>
> Give it a try and let me know how that works for you :-)
>
The second form is exactly what I was talking about and
seems to work fine with stock RT 3.6 code.
-Todd
More information about the rt-users
mailing list