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
---------------------------------------------------------------------
>From 8353cdd05e3ad8c241e5383ca0745948f7a6cc58 Mon Sep 17 00:00:00 2001
From: Pete Cordell <pete....@codalogic.com>
Date: Fri, 15 Apr 2016 17:33:17 +0100
Subject: [PATCH] Added regexp tests that fail but should pass
---
test/regexp/fussyipaddress | 2 ++
test/regexp/timestamp | 7 +++++++
2 files changed, 9 insertions(+)
create mode 100644 test/regexp/fussyipaddress
create mode 100644 test/regexp/timestamp
diff --git a/test/regexp/fussyipaddress b/test/regexp/fussyipaddress
new file mode 100644
index 0000000..3e4b44f
--- /dev/null
+++ b/test/regexp/fussyipaddress
@@ -0,0 +1,2 @@
+=>((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
diff --git a/test/regexp/timestamp b/test/regexp/timestamp
new file mode 100644
index 0000000..0cc4b59
--- /dev/null
+++ b/test/regexp/timestamp
@@ -0,0 +1,7 @@
+=>\d{8}T\d{6}\.?\d{0,6}
+# This gives incorrect result
+20160412T112319
+# These give correct result
+20160412T112319.
+20160412T112319.43
+20160412T112319.432312
--
2.5.3.windows.1
=>((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
=>\d{8}T\d{6}\.?\d{0,6}
# This gives incorrect result
20160412T112319
# These give correct result
20160412T112319.
20160412T112319.43
20160412T112319.432312
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml