https://issues.apache.org/ooo/show_bug.cgi?id=121644
Bug ID: 121644
Issue Type: DEFECT
Summary: unexpected results with boundary regex patterns
(regular expressions)
Classification: Application
Product: word processor
Version: AOO 3.4.1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ui
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
I see some unexpected results using boundary patterns: \b \B alongside
non-alpha characters.
Testing Writer/OOo 3.4.1 (with "match case" ON; Replace all)
vs. Perl 5.14
on Fedora Linux
input: 31/07/2012,"+225.89","PAYMENT RECEIVED, THANK YOU",""
perl -pe 's/\b"/#/g':
Search Result
\b" 31/07/2012,"+225.89#,"PAYMENT RECEIVED, THANK YOU#,""
\B" 31/07/2012,#+225.89",#PAYMENT RECEIVED, THANK YOU",##
"\b 31/07/2012,"+225.89",#PAYMENT RECEIVED, THANK YOU",""
"\B 31/07/2012,#+225.89#,"PAYMENT RECEIVED, THANK YOU#,##
Writer:
Search Result
\b" 31/07/2012,#+225.89#,#PAYMENT RECEIVED, THANK YOU#,##
\B" (not found)
"\b 31/07/2012,#+225.89#,#PAYMENT RECEIVED, THANK YOU#,##
"\B (not found)
Looks like \b always matches; \B never matches.
Patterns with letters instead: \bP work as expected.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.