View Single Post
Old 08-19-2010, 03:21 PM   #9
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by bear4hunter View Post
Thanks a lot, I'll take a look at TextPad this weekend, if I find the time
If you are not afraid, do try [G]Vim text editor.
http://www.vim.org/
Vim has an excellent documentation. It has two parts - user manual and reference manual. The user manual was actually written by a very good professional author of technical books.

Quote:
Originally Posted by bear4hunter View Post
Code:
\r\n finds line breaks
Yes, it does (for files with DOS type end-of line, see http://en.wikipedia.org/wiki/End-of-line ), but not in Regular Expression mode, only in Enhanced mode.
I tried all combination of
\r\n
\n\r
\r
\n

You might try $
OpenOffice.org writer uses $ as a metacharacter for end of line and \n for manual pagebreak. Strange.

EVERY SINGLE implementation of Regular Expressions I have seen has some strange incompatibility with all the other versions.
Some programs even provide several syntaxes you can use (TextPad has two, Vim four (very magic, magic, nonmagic and very nonmagic) I am not kidding ;-) have a look : http://vimdoc.sourceforge.net/htmldo...rn.html#/magic )

I strongly recommend book Mastering Regular Expressions http://oreilly.com/catalog/9780596528126/
kacir is offline   Reply With Quote