[pcre-dev] [Bug 1600] Issue with Regex

Αρχική Σελίδα
Delete this message
Συντάκτης: Prashant Joshi
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 1600] Issue with Regex
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1600




--- Comment #5 from Prashant Joshi <pjoshi@???> 2015-03-19 13:01:40 ---
Hi,

We are using below as regex:

Regex 1:
" /Letzter Messwert.*</th><td class="ActualDataTableBody"
align="center">([^<].*)</td><td class="ActualDataTableBody"
align="center">([^<].*)</td><td class="ActualDataTableBody"
align="center">([^<].*)</td></tr><tr><th scope="row"
class="ActualDataTableRowLabel">Mittelwert/"

Attached text on which we tried to find above regex.

When I changed this regex to below regex it worked with 8.34:
Regex 2:
/Letzter Messwert[\s]+<\/th><td
class="ActualDataTableBody".*>[-+]?([0-9]*\.[0-9]+|[0-9]+)<\/td><td
class="ActualDataTableBody".*>[-+]?([0-9]*\.[0-9]+|[0-9]+)<\/td><td
class="ActualDataTableBody".*>[-+]?([0-9]*\.[0-9]+|[0-9]+)<\/td><\/tr><tr><th
scope="row" class="ActualDataTableRowLabel">Mittelwert/


Regex 1 is working with PCRE 0.2 but not with 8.34.
Regex 2 is working with PCRE 8.34.

Please let me know why is above behavior? Also Are there any other regex
changes which do not work with PCRE 8.34.


Regards
Prashant Joshi
Team Lead C/C++ (CA Engagement)
HCL Technologies Ltd.
A-8/9, Sector 60, Noida 201301, U.P. (India)
Mob: +91-9717055938
E-Mail: pjoshi@???
www.hcltech.com
www.hcl.in

-----Original Message-----
From: admin@??? [mailto:admin@bugs.exim.org] On Behalf Of Philip
Hazel
Sent: Wednesday, March 18, 2015 8:58 PM
To: Prashant Joshi - ERS, HCL Tech
Subject: [Bug 1600] Issue with Regex

------- You are receiving this mail because: -------
You reported the bug.

http://bugs.exim.org/show_bug.cgi?id=1600




--- Comment #4 from Philip Hazel <ph10@???> 2015-03-18 15:27:37
---
On Wed, 18 Mar 2015, Prashant Joshi wrote:

> Can I have chat over phone for this issue.
> I have urgent escalation from customer for this issue.
> Quick response will be appreciated.


Phone is not helpful when dealing with details of regex. What is the
*exact* sequence of characters you are using for your regex? In other
words, what are you putting into the first box in www.regextester.com?

Or, more usefully, if you have access to the pcretest program, what is
the input and output to pcretest that demonstrates your problem?

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email


::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction,
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and
other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email