No. ^. is not equivalent. ^. means to match the first character on
the line, and if doing a replace then the first character would be
deleted. ^ by itself matches the start of the line (not including any
characters), and replacing it with something effectively inserts the
"replacement" text at the start of the line. You could use something
ugly like replacing ^(.) with ${1}PREFIX to avoid deleting the first
character, but that would fail on blank lines which don't have any
characters in them.
In any case, ^ (by itslef) is a standard, well-defined regular expression
syntax used everywhere else (Perl, Python, vim etc. etc.) and Libre Office
should not do something incompatible.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to openoffice.org in Ubuntu.
https://bugs.launchpad.net/bugs/465309
Title:
[Upstream] Regular Expression Search for circumflex by itself does not
find beginning of a paragraph
Status in LibreOffice Productivity Suite:
Confirmed
Status in The OpenOffice.org Suite:
New
Status in “libreoffice” package in Ubuntu:
Triaged
Status in “openoffice.org” package in Ubuntu:
Won't Fix
Bug description:
Binary package hint: openoffice.org
1) lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
2) apt-cache policy libreoffice-calc
libreoffice-calc:
Installed: 1:3.5.3-0ubuntu1
Candidate: 1:3.5.3-0ubuntu1
Version table:
*** 1:3.5.3-0ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386
Packages
100 /var/lib/dpkg/status
1:3.5.2-2ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages
3) What is expected to happen in Writer, Calc, or the Macro Editor is when
one opens the Find & Replace window, with Regular Expression checkbox checked,
in the Search for drop down put a circumflex in, and the beginning of every
paragraph is found. Consulting the LO Wiki and built-in LO help, it is implied
that using a circumflex by itself in the find field should match the beginning
of a paragraph:
http://help.libreoffice.org/Common/List_of_Regular_Expressions
4) What happens instead is nothing is found.
WORKAROUND: Notepad++ 6.1.2:
http://notepad-plus-plus.org/download/v6.1.2.html
via WINE.
apt-cache policy wine1.5
wine1.5:
Installed: 1.5.4-0ubuntu1~ppa1~precise1+pulse17
Candidate: 1.5.4-0ubuntu1~ppa1~precise1+pulse17
Version table:
*** 1.5.4-0ubuntu1~ppa1~precise1+pulse17 0
500 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ precise/main
i386 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
Architecture: amd64
Date: Fri Oct 30 11:36:03 2009
DistroRelease: Ubuntu 9.10
Package: openoffice.org-core 1:3.1.1-4ubuntu2 [modified:
var/lib/openoffice/basis3.1/program/services.rdb]
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.41-generic
SourcePackage: openoffice.org
Uname: Linux 2.6.31-12-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/465309/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp