| Validating Time (8 replies, VIP) |
| ASPFriends.com 'aspngregexp' list |
| Regex gurus, I need a regular express that I can throw into a RegularExpressValidator control that will validate time. Here is the format I need.... hh:mm AM/PM You assistance is much appreciated. Alex AspFriends.com Moderation Team Microsoft MVP ASP.NET *********************************************************** Translate C# code to VB.NET codet at http://aspalliance.com/aldotnet/examples/transla... |
|
| Date + Time Validator (4 replies) |
| ASPFriends.com 'aspngregexp' list |
| Hi, I'm trying to get a regex that will validate a date and time. The date has to be there, but the time can be an optional entry. I've looked through regexlib.com, but I can't seem to find exactly what I'm looking for. I've tried combining a couple to get what I need, but I'm not sure of all the syntax so I wasn't able to get it to work. Here's what I've tried (taken from regexlib.com): ^((((0[13... |
|
| domain (3 replies) |
| ASPFriends.com 'aspngregexp' list |
| hi, I'm looking for regEx code to do the following: http://aaaaa.bbbbb.domain.com I need to capture the first and second portions of the URL, aaaaaa and bbbbb ... the length will vary. help is appreciated! |
|
| Using Replace - Not working right (2 replies) |
| ASPFriends.com 'aspngregexp' list |
| I am using the Regex.Replace function and it is not working properly. Here is the code. n dr["name"].ToString(); msg Regex.Replace(msg, "[[name]]", n); msg is a HTML email that will be sent. I am trying to replace the "[[name]]" with the name from the data base but these are the results: "Your name is going to be inserted right here: [[namMatt] . .............." It replaced the "e]" but no the res... |
|