[ALUG] regex, kate, gedit

Peter Alcibiades palcibiades-first at yahoo.co.uk
Tue Dec 4 08:46:12 GMT 2007


Hi, probably a silly question with an utterly obvious answer, but it would be 
great if someone can enlighten on it!

I'm searching and replacing a text file.  In gedit, if I search for \n\r I 
get, as expected, a match at every line end.  Same with \n or \r.

However, in Kate or Geany, I do not.  Tearing hair out.  What could be the 
problem?  I've tried

\n
[\n]

I've tried building up the expression in the K regex builder.  I've tried 
selecting the line feed character and doing copy and paste.  In Gedit it 
yields \n\r.  In Geany it yields a couple of small square boxes with dots in 
them, which I then can't search on.

Changing the coding doesn't seem to help either.  At least, the ones I have 
tried.  Is this likely to be the explanation?  It displays fine however, so 
how do I find out which different coding to use?

I would just do it in Gedit, except that as usual in the effort to make their 
apps unusable for anyone who wants to use them for anything, Gnome decline to 
support regex.....

Peter



More information about the main mailing list