You are here: PSPad forum > English discussion forum > Multi-Line Search Add-On
Goto Page: PreviousFirst...7 8 9 10 11 12 13 14 15 16 17
Posted by: vbr | Date: 2018-01-28 16:26 | IP: IP Logged
I am currently not using PhReplace and am not sure about the supported regex features, but it seems, that there are several possibilities for fine-tuning the regex pattern you are using:
you may try:
*? means a non-greedy quantifier - it matches as little as possible, instead of the * meaning as much as possible.
if this is not supported in PhReplace (or the underlying VBScript), you may adjust the pattern in other ways, e.g.:
in this case, any characters except of > are allowed -
if you know, that the paths to match are inside of html tags, i.e. the match should not contain a closing > (this will, however, also fail if > is somehow part of the tag content, e.g. label, etc.; I believe, this shouldn't happen normally).
I work with hundreds of html files.
I download them to local folder. Now i want to use one folder for images.
So i want to change all image sources in the file
<img alt="Product Image" src="./A57M_files/guven.jpg" width="700">
What i want
<img alt="Product Image" src="./images/guven.jpg" width="700">
to find this is use that regular expression
It works ok but if there are 2 images then it founds both.
<img alt="Product Image" src="./A57M_files/deneme.jpg" width="700"><img alt="Product Image" src="./A57M_files/test2.jpg" width="700">
It founds this;
src="./A58M-E_files/guvenpc1.jpg" width="700"> <img alt="Product Image" src="./A58M-E_files/
But i don't need after first ", how i make it stop after first " character.
and found only this and stop src="./A57M_files/
Posted by: joemarfice | Date: 2021-03-31 20:06 | IP: IP Logged
Installing the latest version of PSPad (5.05 (533) 2/7/2021) broke phReplace for me. The script won't bring up its window, whether I use the key combination or directly choose it from the Scripts menu. Other scripts still work.
When I try to register the dll from the PSPad folder using the cmd-window command
> regsvr32 "phreplace.dll"
I get a popup error window named "RegSvr32":
Quote:The module "phreplace.dll" was loaded by the call to DllRegisterServer failed with error code 0x80004005.
Posted by: pspad | Date: 2021-03-31 20:26 | IP: IP Logged
Try to run command prompt as admin
Use whole path to dll:
Edited 1 time(s). Last edit at 2021-03-31 20:27 by pspad.
Posted by: joemarfice | Date: 2021-04-12 13:30 | IP: IP Logged
Installing 5.06 fixed the problem, without reinstalling the driver at all.
Posted by: techera | Date: 2021-06-16 11:04 | IP: IP Logged
When comparing Atom vs PSPad, the Slant community recommends Atom for most people. Even seemingly core packages, like those taking care of search and replace functionality, can be forked on GitHub, and Multi-line select and edit.
Posted by: pspad | Date: 2021-06-16 11:39 | IP: IP Logged
techera:When comparing Atom vs PSPad, the Slant community recommends Atom for most people. Even seemingly core packages, like those taking care of search and replace functionality, can be forked on GitHub, and Multi-line select and edit.
Posted by: infomedacess | Date: 2021-12-28 19:49 | IP: IP Logged
OK found the file by browsing to it on your site. Great little application. Here are a couple of observations: