Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

XML pattern matching for numbers

Last post 05-14-2008, 7:15 PM by Aussie Susan. 16 replies.
Page 2 of 2 (17 items)   < Previous 1 2
Sort Posts: Previous Next
  •  05-14-2008, 11:04 AM 42247 in reply to 42233

    Re: XML pattern matching for numbers

    Aussie Susan:

    The problem is that, without the boundary placeholders, it will match the start of "34.56.78" etc.. Sure it will pick out a valid number, but there needs to be something that forces it go try to go to the end of the text.

    Susan 

    No 34.56.78 wouldn't match

    I think you misunderstood what I was saying.  XML Schema regexes must match the entire input. The ^ and $ placeholders are not allowed/used but they are implied.

    The XML Schema pattern xyz would be like ^xzy$ in other engines.


    Michael

    "In theory, theory and practice are the same. In practice, they are not."
    Albert Einstein
  •  05-14-2008, 7:15 PM 42266 in reply to 42247

    Re: XML pattern matching for numbers

    Thanks for the explanation. I understand you now.

    Susan 

Page 2 of 2 (17 items)   < Previous 1 2
View as RSS news feed in XML