pspad: -------------------------------------------------------------------------------- Regular expression doesn't transform letters --------------------------------------------------------------------------------
pspad, thank you for your response. I realize that regular expressions are not for text transformations. I just wanted to know if there was a mechanism to convert a back reference in the replace field to upper case. For example upper($1) or something like that. Is there a way to call build in pspad functions from the replace box? vbr: -------------------------------------------------------------------------------- You may try my simple javascript addon for PSPad for this task: http://www.vbr.wz.cz/pspad/poor-man-s-REplace.html Here you can use an anonymous function in the RE replacement; e.g. using the pattern: /([a-z])([0-9]+)([a-z])/g, function(match, paren1, paren2, paren3){ return paren1.toUpperCase() + paren2 + paren3;} you can replace a12a b345b c87c d98d q654q v123v g546g to A12a B345b C87c D98d Q654q V123v G546g However, there are some limitations which may cause problems, hence test it on a backed up data :-). -------------------------------------------------------------------------------- vbr, I'll check the script out. It seems to be what I am looking for. Thanks! -- <http://forum.pspad.com/read.php?2,47778,47819> PSPad freeware editor http://www.pspad.com
