Thread: PRS-650 Restore annotations - how?
View Single Post
Old 11-12-2011, 11:58 AM   #10
elminster
Junior Member
elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.elminster knows what is on the back of the AURYN.
 
Posts: 9
Karma: 9900
Join Date: Apr 2011
Device: sony PRS-650
Glad soembody finds it useful. I'm not a regular expression expert (it always takes me quite some time to get the right one, especially if something is to be matched over multiple lines), but since you asked for a freeware solution...

Programmer's Notepad is a freeware editor that supports regular expression. You can get it here: http://www.pnotepad.org/ (there is also a portable version, so you can use it from an usb stick for example).

The problem is that it doesn't support regular expressions fully yet. Anyway, this one works for me:
Quote:
<sony:data(.+\n){1,10}.+</sony:data>
Usually the {1,10} part (meaning 1 to max 10 times) should be a *, but then the editor matches everything to the last and not the first </sony:data> closing tag. But I think (!) there are never more than 10 lines between the opening and closing tag, so this should work well.

The editor is also capable of replacing in multiple files.

Another freeware editor supporting regular expressions is PSPad (http://www.pspad.com/en/), but it doesn't support them for multiple files. Also I couldn't figure out the right syntax to match multiple lines. But that doesn't mean it is not possible
elminster is offline   Reply With Quote