Jump to content
Sign in to follow this  
CarlosC70

Understand a pattern from .Xsd

Recommended Posts

Hello.

I'm unable to understand the following pattern:

 <xs:pattern value="[0-9]+|[0-9]+[.][0-9]+|[0-9]+-[A-Z]{2}(M )([^ ]+[/][0-9]+)|[0-9]+-[A-Z]{2}(D )([^ ]+ [^/^ ]+[/][0-9]+)"></xs:pattern>

Which values can this element get?

Thanks.

Share this post


Link to post
Share on other sites

Well, it can get a whole lot of possible values.  You'll need to understand the parts of it.  [0-9] means any digit, if it's followed by a plus sign it means 1 or more digits.  | means "or".  A number in brackets, like {2}, means 2 of the previous character class.  There should be plenty of regular expression references online if you want to look up specific things, or if you have specific questions you can ask here.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...