Bug 114388

Summary: SEARCH function fails (#VALUE!) if search string is longer than text
Product: LibreOffice Reporter: Eike Rathke <erack>
Component: CalcAssignee: Eike Rathke <erack>
Status: CLOSED INVALID    
Severity: normal    
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:

Description Eike Rathke 2017-12-10 16:55:27 UTC
The SEARCH function fails returning a #VALUE! result if the search string is longer than the text to be searched, which is valid if wildcards or regular expressions are active. For example:
SEARCH("word","^word.*")
should return 1.
Comment 1 Eike Rathke 2017-12-10 16:55:56 UTC
Taking.
Comment 2 Eike Rathke 2017-12-10 17:13:15 UTC
Of course the example should be SEARCH("^word.*","word") ...
Comment 3 Eike Rathke 2017-12-10 17:18:29 UTC
And therefor this case is nonsense..