not match regex for XML schema validation

2001-10-08 Thread Taras Shkvarchuk
I need to NOT match something in a regex for XML schema validation. And I need to do it all in one command it looks like. for example: I want to let values pass if they start with "cid:" or "file:" or if they don't have a ':' inside the string. I was thinking somthing like:

Re: not match regex for XML schema validation

2001-10-08 Thread Keith C. Ivey
Taras Shkvarchuk [EMAIL PROTECTED]> wrote: > I want to let values pass if they start with > "cid:" or "file:" or if they don't have a ':' inside the string. > I was thinking somthing like: /^(cid:.+|file:.+|.*(?!:).*)$/ > should work but it doesn't :( Something that starts with "cid:" or "file:"