pattern values

Discussion in 'XML' started by c_capatana@hotmail.com, Nov 11, 2003.

  1. Guest

    I have to write an schema for application that must run on Win and
    Unix.

    I have to describe some pattern values. I have read some documentation
    and some previous Q&A in XML groups. Some questions remain for me.
    What's the
    better way to use for specifying these pattern value, independent of
    platform:

    for digits: [0-9] or \d
    for example 12 digits pattern must be: [0-9]{1,12} or \d{1,12}
    for enter: &#xD or \n
    for example an element that must contain 12digits Enter 15a:
    \d{1,12}
    [A-Z]{1,15} or \d{1,12}\n[A-Z]{1,15}

    Are both definitions correct. What is preffered?

    Please help me.
    Thanks.
     
    , Nov 11, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    17
    Views:
    2,159
    Chris Uppal
    Nov 16, 2005
  2. Peekachu
    Replies:
    1
    Views:
    414
    Oliver Wong
    Jul 10, 2006
  3. sunny
    Replies:
    1
    Views:
    654
    Salt_Peter
    Dec 7, 2006
  4. George Sakkis

    Default attribute values pattern

    George Sakkis, Jan 19, 2008, in forum: Python
    Replies:
    8
    Views:
    402
    George Sakkis
    Jan 21, 2008
  5. Pallav singh
    Replies:
    0
    Views:
    599
    Pallav singh
    Jan 22, 2012
  6. Pallav singh
    Replies:
    0
    Views:
    579
    Pallav singh
    Jan 22, 2012
  7. Pallav singh
    Replies:
    1
    Views:
    679
    Peter Remmers
    Jan 22, 2012
  8. ChrisC
    Replies:
    4
    Views:
    340
    ChrisC
    Jun 25, 2010
Loading...