xsd pattern restriction - disallow backslash

I have a requirement to disallow backslash characters in a given string field defined by an xsd document. However, being as green as I am, I am not confident with my xsd and/or regex knowledge. Here is what I have so far:

<xs:simpleType name="BackslashRestrictedField">
  <xs:restriction base="xs:string">
    <xs:minLength value="0" />
    <xs:pattern value="[^\\]"/> <!-- disallow backslash '\' char ??? -->



If I'm right, with this expression, you only allow a string that's one character long and that won't accept backslash. Adding a * at the end of your regexp should fix this issue.

Need Your Help

Extern struct in C

c extern

I have a C file generated with F2C (Fortan to C translator) that contains the following C structure:

How to access context after each Entity Framework db migration

sql entity-framework-6

When I Add-Migration, I get the appropriate DbMigration class with the Up / Down methods, where I am able to make schema changes and (with the use of the Sql() method) can make data/content changes...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.