1
vote
1answer
9 views

Insert a line of text before lines matching a regex in vim

I'm attempting to add a column to an HTML table using vim so I need to add a pair of <td> tags the line before each </tr>. So far I have :186,$s/ <\/tr>/<td><\/td> \n ...
0
votes
0answers
17 views

Weeding out invalid html code with regex

I need a pcre regex that will select all html img tags without a src part. Long story. With help I got to (?-s)<img(?!.*?src).*?\/> which worked fine until a line got a second img tag WITH src ...
0
votes
1answer
434 views

Regular Expression Needed to Replace Javascript in HTML Files

I need a regular expression that works in Notepad++ to remove multiline javascript references in several hundred HTML files. The code I want to remove looks like this: <script ...
0
votes
3answers
280 views

Regex to delete only one word in a phrase where multiple characters are matched in Notepad++

I have a recurring word that pops up everywhere in a page of my that is right built into an HTML page. And I want to delete this word and this word only everywhere by using Regex in Notepad++. The ...
2
votes
2answers
113 views

Vim regex for wrapping visually selected digits with HTML tags

I have a bunch of text I need to format via HTML, my main problem being that there's a bunch of digits at the beginning of certain words that I need to wrap with HTML tags. I'm trying to think up a ...
2
votes
2answers
271 views

How to extract terms from an HTML document

I have a HTML document filled with terms that I need to put into a spreadsheet. They follow this basic pattern: <ul> <li class="name"><a ...
1
vote
2answers
95 views

Vim pattern for replacing ftp links with local

Question I'm going to be sorting through a large mass of html files and replacing links to an ftp site with local links. I am using vim and I am trying to figure out a pattern to use with ...
-1
votes
1answer
1k views

Sed extract data from html table

With sed I can extract data from an HTML file? For example like this: <html> ... <table> <tr> <td>R1A</td><td>R1B</td> ...