ValidateRegEx and Regex Escaping

Link. August 21, 2007. Comments [0]. Posted in: Castle

I recently ran into a problem with Castle's [ValidateRegEx(...)] validation attribute and Monorail, where if you used a regular expression that contained '\' characters to escape symbols, they would be incorrectly rendered in the corresponding client-side Javascript expression.

I posted about the issue in the Castle forums, alongside one possible way to fix it, in case someone runs into the same problem.



Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1050
This Year: 1
This Month: 1
This Week: 0
Comments: 825

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In