Click here to Skip to main content
15,885,061 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:19
sitebuilderLuc Pattyn9-Mar-11 3:19 
GeneralRe: Pattern Pin
byka9-Mar-11 3:36
byka9-Mar-11 3:36 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:55
sitebuilderLuc Pattyn9-Mar-11 3:55 
GeneralRe: Pattern Pin
musefan4-Apr-11 2:55
musefan4-Apr-11 2:55 
GeneralRe: Pattern Pin
Luc Pattyn4-Apr-11 3:38
sitebuilderLuc Pattyn4-Apr-11 3:38 
GeneralRe: Pattern Pin
musefan4-Apr-11 4:03
musefan4-Apr-11 4:03 
AnswerRe: Pattern Pin
Shahan Ayyub23-Aug-11 11:13
Shahan Ayyub23-Aug-11 11:13 
QuestionRegex in DataAnnotations that can unmatch a input string containing not paired double quote " Pin
stevecwlee28-Feb-11 16:31
stevecwlee28-Feb-11 16:31 
Dear experts,

I want to write a Regex in DataAnnotations that can unmatch a input string containing not paired double quote "

ie. check if zero or a paired double quote allowed in a input string. pls kindly advise. thx

matched case:
abcde
"abcde"
abc"d"e

unmatched case:
"abc"de"
"abcde
abc"de
abcde"


MY EXISTING CODE FYR:

...

using System.ComponentModel.DataAnnotations;
using Microsoft.Web.DynamicData;

...

namespace EDMModel
{
    [MetadataType(typeof(DETAIL_MetaData)), ScaffoldTable(true)]
    public partial class DETAIL{}

    public class DETAIL_MetaData
    {
        [Required, RegularExpression(@"[^~`!@#%&()={}|:;'<>,./+?*^$]*", ErrorMessage = "Unsupported Character detected"), StringLength(20), Display(Order = 21)]
        public object NAME1 { get; set; }
...

....

AnswerRe: Regex in DataAnnotations that can unmatch a input string containing not paired double quote " Pin
Captain Ketchup4-Apr-11 1:40
Captain Ketchup4-Apr-11 1:40 
Questionxml regex (for php) Pin
fdsfsa76f7sa611-Nov-10 9:12
fdsfsa76f7sa611-Nov-10 9:12 
AnswerRe: xml regex (for php) Pin
AspDotNetDev11-Nov-10 10:28
protectorAspDotNetDev11-Nov-10 10:28 
GeneralRe: xml regex (for php) Pin
fdsfsa76f7sa611-Nov-10 11:08
fdsfsa76f7sa611-Nov-10 11:08 
QuestionExpression needed Pin
Mazdak5-Sep-10 16:22
Mazdak5-Sep-10 16:22 
AnswerCross-post Pin
Luc Pattyn5-Sep-10 16:54
sitebuilderLuc Pattyn5-Sep-10 16:54 
AnswerRe: Expression needed Pin
OriginalGriff6-Sep-10 1:27
mveOriginalGriff6-Sep-10 1:27 
Questionhtml tag finder Pin
moein.serpico14-Aug-10 23:14
moein.serpico14-Aug-10 23:14 
AnswerRe: html tag finder Pin
PIEBALDconsult15-Aug-10 8:19
mvePIEBALDconsult15-Aug-10 8:19 
AnswerRe: html tag finder Pin
OriginalGriff15-Aug-10 8:31
mveOriginalGriff15-Aug-10 8:31 
GeneralRe: html tag finder Pin
AspDotNetDev26-Sep-10 9:29
protectorAspDotNetDev26-Sep-10 9:29 
AnswerRe: html tag finder Pin
AspDotNetDev26-Sep-10 9:28
protectorAspDotNetDev26-Sep-10 9:28 
AnswerRe: html tag finder Pin
Hiren solanki17-Dec-10 0:40
Hiren solanki17-Dec-10 0:40 
QuestionDifferences between matches with same RegEx [modified] Pin
RichardGrimmer6-Aug-10 0:00
RichardGrimmer6-Aug-10 0:00 
AnswerRe: Differences between matches with same RegEx PinPopular
Peter_in_27806-Aug-10 2:22
professionalPeter_in_27806-Aug-10 2:22 
GeneralRe: Differences between matches with same RegEx - RESOLVED Pin
RichardGrimmer8-Aug-10 22:53
RichardGrimmer8-Aug-10 22:53 
QuestionEven Expresso couldn't help me with this RegEx - Can You? Pin
Sonhospa30-Jul-10 7:19
Sonhospa30-Jul-10 7:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.