View Single Post
Old 07-04-2009, 08:26 AM   #13
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 elegant View Post
Could someone explain how the above works?
Quote:
1 - Search and replace "$" with one space
2 - Search and replace ".*$" with "&\n"
I want to remove progressive page numbers.
The above doesn't work.

For several reasons:

1. You have to switch "Regular expressions" option ON for this to work.

2. Step one searches for all "end of paragraph" marks, that are in OpenOffice represented by regular expression $ and replaces that "end of paragraph" with a space. Step 2 searches for all "end of paragraph" marks preceded by dot. But there are NO "end of paragraph" characters anymore, because you have replaced all of those in step one.

Post an example of how the text you need to process looks and I will try to construct a regular expression that will delete all page numbers (and *only* page numbers ;-) )

Last edited by kacir; 07-04-2009 at 09:31 AM.
kacir is offline   Reply With Quote