[xml] Additional regexp test files



Hi there,

Please can I submit the following regexp test files that should pass, but when I test them they fail. (I'm afraid I'm not smart enough to suggest how to fix the code!)

I've attached them and included a git patch so hopefully one of the formats is convenient for you. If not, let me know what would work better. I've included them inline below so you can do a quick scan.

test/regexp/fussyipaddress
--------------------------
=>((1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])
192.168.254.0

test/regexp/timestamp
---------------------
=>\d{8}T\d{6}\.?\d{0,6}
# This gives incorrect result
20160412T112319
# These give correct result
20160412T112319.
20160412T112319.43
20160412T112319.432312

Thanks,

Pete.
--
---------------------------------------------------------------------
Pete Cordell
Codalogic Ltd
C++ tools for C++ programmers, http://codalogic.com
Read & write XML in C++, http://www.xml2cpp.com
---------------------------------------------------------------------

Attachment: broken_regexps.patch
Description: Text Data

Attachment: fussyipaddress
Description: Text document

Attachment: timestamp
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]