Incorrect regular expression accepted by Oxygen
Posted: Wed Apr 18, 2007 11:09 am
Hi!
I have just notice that one of my regular expression (used with pattern) was incorrect. I would expect to get an error from Oxygen (or at least from the XML Schame Regular Expressions Builder).
My pattern was the following:
In another view:
You can see that I have on ( in more. Is it normal that I did not get an error?
I heard that the XMLSpy software raised an error message for that. Why not Oxygen? I am using version 7.2
Thx in advance for your answer.
I have just notice that one of my regular expression (used with pattern) was incorrect. I would expect to get an error from Oxygen (or at least from the XML Schame Regular Expressions Builder).
My pattern was the following:
Code: Select all
((([^0][1]?[0-9]{0,2}|2([0-4]?[0-9]{0,1}|5[0-5]?))\.){0,3})(([^0][1]?[0-9]{0,2}|2([0-4]?[0-9]?|5[0-5]?)))/(3[0-2]|[1-2]?[0-9]))
Code: Select all
(
(
(
[^0][1]?[0-9]{0,2}
|2
(
[0-4]?[0-9]{0,1}
|5[0-5]?
)
)\.
){0,3}
)
(
(
[^0][1]?[0-9]{0,2}
|2
(
[0-4]?[0-9]?
|5[0-5]?
)
)
)/
(
3[0-2]
|[1-2]?[0-9]
)
)
I heard that the XMLSpy software raised an error message for that. Why not Oxygen? I am using version 7.2
Thx in advance for your answer.