• Fur Affinity Forums are governed by Fur Affinity's Rules and Policies. Links and additional information can be accessed in the Site Information Forum.

NotePad++ Mass edit of HTML tags?

can

Member
Okay so what I have here is this tag I am wanting to edit:
Code:
<a  rel="nofollow" href="11">
And I am wanting the tag to look like this:
Code:
<a  rel="nofollow" href="11.htm">

Now here is the fun part the '11' is pretty much going to change from page to page, so my question is how can I edit... well a shit tone of pages, without having to change the '11' over and over again?
 

Taralack

Hit 'em right between the eyes
Pretty sure you're shit out of luck mate. You're probably gonna have to do a Find and replace for each page. Someone else might have an idea though.
 
L

LizardKing

Guest
Depending on how screwed up your problem is, you might be able to monkey up some python to do it or similar. Presumably you're using windows - since you mentioned notepad++ - so you won't be using bash or perl or whatever.
 

Teckolf

Drank ALL the Coffee!!!
Wll if there aren't any other numbers on those pages you might be able to write a unix shell, C, matlab, whatever, script to replace the numbers sequentially by file name. I mean if it is less than say 100 pages its probably easier to do it manually if you arent good with an easy procedural language...
 

Xela-Dasi

PiratePiratePiratePirateP irate
take your favorite drink, and change it manually with your favorite music.
 

V3N44X

bool n00b = true;
is there only one per page?

Also, notepad++ has a find and replace if you hit ctrl+f so you don't actually have to find em all.

EDIT: Just realized I bumped this pretty bad... sorry about that. Have to remember to look at dates on this place.
 
Top