Thread: Ugly formatting
View Single Post
Old 12-14-2007, 12:47 PM   #52
GregS
Zealot
GregS has a complete set of Star Wars action figures.GregS has a complete set of Star Wars action figures.GregS has a complete set of Star Wars action figures.GregS has a complete set of Star Wars action figures.
 
Posts: 107
Karma: 308
Join Date: Oct 2007
Location: Perth Australia
Device: EZ Reader 5", Iliad
Quote:
Originally Posted by HarryT View Post
For a page number of the form:

[Pg xxx]

set the search string to "\[Pg [0-9]*\]" - that is, the character "[", then "Pg ", then a sequence of characters in the range 0-9, then another character "]".

Set the replace string as emply, and check the "RegEx" box on the search dialog.
Harry T, forgive my suggestion if it does not suit the format being discussed, but would not it be better to mark-up page numbers either as attributes (<pg number = "xxx"/>) or elements (<pg>xxx</pg>) that could be hidden by a style sheet?
GregS is offline   Reply With Quote