Vim (linux) regex to create links
Clever Code
1
Posts
1
Posters
7
Views
1
Watching
-
I've been working on about a dozen web pages that I updated. These pages have tables of courses that students can take, and the the page they link to changed. So, after a quick search, I used this regex in Vim (one of the best text editors):
:%s/<td>\(\w\+\)\s\(\d\+\)<\/td>/<td><a href="courses.php?course=\1%20\2">\1 \2<\/a><\/td>/i