Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9244913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:08:47+00:00 2026-06-18T09:08:47+00:00

How does RegularExpressionAttribute (System.ComponentModel.DataAnnotations) handle the translation from .NET Regular Expression pattern flavor to

  • 0

How does RegularExpressionAttribute (System.ComponentModel.DataAnnotations) handle the translation from .NET Regular Expression pattern flavor to the javascript flavor in order to do the validations client-side?

I’m guessing that there is no translation at all, and the regular expression pattern indicated in the attribute must be compatible enough with both engines.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:08:48+00:00Added an answer on June 18, 2026 at 9:08 am

    Your guess is correct, the regular expression is not being translated in any way, just being directly passed to the client side. This can be easly verified by checking the source code of RegularExpressionAttributeAdapter and ModelClientValidationRegexRule classes.

    You can check the following question for more informations about differences between C# and JavaScript Regular Expressions engines: Differences between C# and JavaScript Regular Expressions

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does Perl support conditional regular expression : (?(condition)true-pattern|false-pattern) i.e. if the condition is true
Does anyone have code for finding a file that contains a regular expression? I
Does anyone know how could I select a variable from a String in JavaScript?
Does anyone have a translate function for x/y positions after rotation in javascript? for
Does anyone know of a reliable approach for scrolling a WPF DataGrid (.NET 4)
Does a firewall running on a machine only block stuff from outside that machine,
Does jquery support both function pageload() and $().ready() ? Or is pageload() for ajax.net
Does anyone have any experience with PHP QuickHash ( http://php.net/manual/en/book.quickhash.php )? Some early testing
Does anyone know what the function is to perform a natural order sort using
Does anyone have any good information aside from the Google App Engine docs provided

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.