Hi,
Sorry I haven't been answering posts for a while, was a bit removed from society
for the last few months.
It has already been pointed out version 1.3.15 is available for download, this
version fixes the problem where phReplace truncates text following a 'Replace
All' in a selection. What was happening was if the search and replace text were
different lenghts, it wasn't adjusting the selection to accomodate the new
length.
I'm aware of a couple of issues still exisitng:
1. phReplace doesn't run on Windows Vista.
2. Apparently there is a bug when using Replace All with word wrap enabled. I
haven't been able to recreate this yet but am working on it.
3. There seems to be some confusion with replacing regular expression matches
using $1, $2 etc.. This is probably because of my limited understanding of RE.
How it works now: For one it only works on Replace All, not a single Replace.
If you have an expression like '<(.*)>' and replace it with '<$1_Test>' then it
should append _Test to the text within a tag.
>From what I assume you need to use brackets to specify a match to use in the
repalce all, if there are multiple bracket sets then use $1, $2 to reference
them.
Example:
Text:
<Tag1>
<Tag2>
Value
</Tag2>
</Tag1>
Search: <(.*)>
Replace: <$1_Test>
Result:
<Tag1_Test>
<Tag2_Test>
Value
</Tag2_Test>
</Tag1_Test>
Hope this helps.
--
<http://forum.pspad.com/read.php?2,34061,41797>
PSPad freeware editor http://www.pspad.com