Issue 15339 - VLOOKUP doesn't match regular-expressions
Summary: VLOOKUP doesn't match regular-expressions
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: programming (show other issues)
Version: OOo 1.1 Beta
Hardware: All All
: P4 Trivial (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@sc
URL:
Keywords: rfe_eval_ok
Depends on: 35913
Blocks:
  Show dependency tree
 
Reported: 2003-06-05 17:13 UTC by errorist
Modified: 2017-05-20 11:42 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample OpenOffice spreadsheet (6.02 KB, application/octet-stream)
2003-06-05 17:16 UTC, errorist
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description errorist 2003-06-05 17:13:52 UTC
Using:
StarOffice 6.0 
OpenOffice 1.1Beta
Windows XP Home
PC

When the argument 'criterion' of a VLOOKUP function contains
regular-expression-like characters (.?) and
"Options-Spreadsheet-Calculate-Enable regular expressions in formulas" is turned
on, function will always returns "N/A" (sort order "TRUE"). In the attached
sample I commented various matches where i found the result astonishing.  

By the way online help titles "Allow regular expressions in formula" for the
switch "Enable regular ...".
Comment 1 errorist 2003-06-05 17:16:55 UTC
Created attachment 6681 [details]
Sample OpenOffice spreadsheet
Comment 2 frank 2003-06-06 15:56:28 UTC
Hi,

regular expressions are working from OOo1.1Beta2 on.

The only thing using your example that can be seen as a bug is the
search for a hard line break. All other work as defined.

Calcs reg expressions compare what can be seen in the Edit line,
therefore a hard line break will not be recognized for know. I sent
this report as an RFE to our feature guys.

Best regards

Frank
Comment 3 bettina.haberer 2004-01-21 18:37:36 UTC
Summary: VLOOKUP doesn't match regular-expressions. When the argument
'criterion' of a VLOOKUP function contains regular-expression-like characters
(.?) and
"Options-Spreadsheet-Calculate-Enable regular expressions in formulas" is turned
on, function will always return "N/A" (sort order "TRUE"). 
This issue is considered for OO.o later.
Comment 4 drking 2007-10-29 05:26:44 UTC
Reviewing this in OOo 2.3:
I disagree about the summary

VLOOKUP *does* match regular-expressions - with the exception that E\nF does 
not find E line_break F.
Note that Find & Replace will indeed find E\nF, but will *not* find E.F or even 
E.*F.

As far as I can tell, the regex engine seems to consider OOo text in separate 
bits, delineated by paragraph marks and \n in Writer, and by cells and \n in 
Calc. It considers these bits one at a time separately, and thus does not 
normally see the delineators at all. Then because people want to be able to 
manipulate \n and paragraph marks, special cases have been added (eg $ on its 
own to match a paragraph mark). This E\nF in a function seems to be a special 
case that is not working as intended.

Many people feel the overall OOo regex syntax should be re-thought - and if 
that happens then this issue might disappear. So I agree a target OOo later.
Comment 5 wsfulton 2008-08-03 20:41:07 UTC
The patch in Issue 35913 fixes the regular expression problem matching line
breaks (\n).
Comment 6 ooo 2009-03-10 18:36:46 UTC
Grabbing.
Comment 7 ooo 2009-03-10 18:37:39 UTC
Fixed with issue 35913 in cws calcmultiline.
Comment 8 ooo 2009-03-12 16:48:25 UTC
Reassigning to QA for verification.
Comment 9 oc 2009-04-24 13:37:36 UTC
verified in internal build cws_calcmultiline
Comment 10 thorsten.ziehm 2009-07-20 14:40:38 UTC
This issue is closed automatically and wasn't rechecked in a current version of
OOo. This fixed issue should be integrated in OOo since more than half a year.
If you think this issue isn't fixed in a current version (OOo 3.1), please
reopen it and change the field 'Target Milestone' accordingly.

If you want to download a current version of OOo =>
http://download.openoffice.org/index.html
If you want to know more about the handling of fixed/verified issues =>
http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues
Comment 11 thorsten.ziehm 2009-07-20 15:36:01 UTC
Sorry this issue was wrongly closed. This issue will be reopened automatically.
And will be set after that back to fixed/verified.
Comment 12 thorsten.ziehm 2009-07-20 15:40:20 UTC
Set to state 'fixed'.
Comment 13 thorsten.ziehm 2009-07-20 15:44:31 UTC
Set back to state 'verified/fixed'.

Again. Sorry for the mass of mails.