[libreoffice-users] Re: using \t in regular expression replace

2012-10-08 Thread Andreas Säger
Am 08.10.2012 09:03, Cor Nouws wrote:
 
 Of course I used this workaround.
 But I wondered if I did something wrong, or missed some special trick to
 replace $ with a tab in one run.
 


The $ does not match any character. It matches a position. You may think
of the position where the bar cursor blinks when you navigate behind
last character of a paragraph. Likewise, the ^ represents the position
before the first character of a paragraph. The paragraph break between
the 2 positions is unmatchable.
\ and \ represent the positions in front of the first or behind the
last character of a word respectively.

\n in the regex search field matches a line break (Shift+Enter in
Writer, Ctrl+Enter in Calc). In the replace field the \n represents a
paragraph break. It is a long standing and highly irritating issue that
replacing \n with \n replaces line breaks with paragraph breaks.





-- 
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Re: using \t in regular expression replace

2012-10-08 Thread Brian Barker

At 12:09 08/10/2012 +0200, Andreas Säger wrote:

The $ does not match any character. It matches a position.


That's what I understood too.  But, contrary to 
this, searching for $ *does* match the paragraph 
break (whether or not it is supposed 
to).  Strangely, though, \t in the Replace with 
field is then not interpreted properly.  Hence the need for the workaround.


Brian Barker


--
For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted