CarlosC70 Posted April 15, 2019 Share Posted April 15, 2019 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. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 15, 2019 Share Posted April 15, 2019 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now