The following lines were added (+) and removed (-):
>Creation Date: Thu Apr 22 12:43:36 CDT 2004 current ver 0.11<big><big><big>RegEx</big></big></big> Creation Date: Thu Apr 22 12:43:36 CDT 2004 current ver 0.11wish to add CR's in an html file for the beginning of every table row <tr> tagwish to add CR's in an html file for the beginning of every table row <tr> tagyou would :%s/<tr>/{CNTRL-V}{CR}<tr>/ In {} brackets are key combinations, youyou would :%s/<tr>/{CNTRL-V}{CR}<tr>/ In {} brackets are key combinations, youappear as 1,$S/<\/td>/^n<\/td>/appear as 1,$S/<\/td>/^n<\/td>/ <nowiki>^ Match the beginning of a line</nowiki> <nowiki>^ Match the beginning of a line</nowiki> <nowiki>$ Match the end of a line</nowiki> <nowiki>$ Match the end of a line</nowiki> <nowiki>[abc] Is a single-character pattern that matches</nowiki> <nowiki>[abc] Is a single-character pattern that matches</nowiki> <nowiki> either the letter a, b or c</nowiki> <nowiki> either the letter a, b or c</nowiki> <nowiki>[ab0-9] Is a single-character pattern that matches</nowiki> <nowiki>[ab0-9] Is a single-character pattern that matches</nowiki> <nowiki> either a or b or a digit in the ascii range</nowiki> <nowiki> either a or b or a digit in the ascii range</nowiki> <nowiki> from zero to nine</nowiki> <nowiki> from zero to nine</nowiki> <nowiki>[a-zA-Z0-9\-] This matches a single-character that</nowiki> <nowiki>[a-zA-Z0-9\-] This matches a single-character that</nowiki> <nowiki> is either an upper case or lower case</nowiki> <nowiki> is either an upper case or lower case</nowiki> <nowiki> letter, a digit or the minus sign.</nowiki> <nowiki> letter, a digit or the minus sign.</nowiki>Inverted sets are also possible using a set definition with "[^" instead ofInverted sets are also possible using a set definition with "[^" instead of"[". Inverting a ^ changes the meaning from beginning of the line to an"[". Inverting a ^ changes the meaning from beginning of the line to an <nowiki>[0-9] Is a single character pattern that matches</nowiki> <nowiki>[0-9] Is a single character pattern that matches</nowiki> <nowiki> a digit in the ascii range from zero to nine.</nowiki> <nowiki> a digit in the ascii range from zero to nine.</nowiki> <nowiki>[^0-9] Match any single NON-digit character.</nowiki> <nowiki>[^0-9] Match any single NON-digit character.</nowiki> <nowiki>[^abc] Match any single character that is not an</nowiki> <nowiki>[^abc] Match any single character that is not an</nowiki> <nowiki> a, b or c.</nowiki> <nowiki> a, b or c.</nowiki> <nowiki>. matches one occurance of anything accept a new line character</nowiki> <nowiki>. matches one occurance of anything accept a new line character</nowiki> <nowiki>* multiplier determines how often a single-character pattern must occur </nowiki> <nowiki>* multiplier determines how often a single-character pattern must occur </nowiki> <nowiki>- indicates a range</nowiki> <nowiki>- indicates a range</nowiki> <img src="gm9283900.jpg> <img src="gm9283900.jpg> <img src="gm66001.jpg> <img src="gm66001.jpg> :%s/\(<img src="gm[0-9]*\.\)jpg/\1gif/ :%s/\(<img src="gm[0-9]*\.\)jpg/\1gif/ :%s/<string1>/<string2> :%s/<string1>/<string2> <img src="gm[0-9]*\. <img src="gm[0-9]*\.create line breaks {CR} after each <tr> table row starts and concludes.create line breaks {CR} after each <tr> table row starts and concludes. :%s/<tr>/<tr>/g :%s/<tr>/<tr>/g :%s/<\/tr>/<\/tr>/g :%s/<\/tr>/<\/tr>/gNow to create a line break {CR} for each <td> table cell tag:Now to create a line break {CR} for each <td> table cell tag: :%s/<td>/<td>/g :%s/<td>/<td>/g :%s/<\/td>/<\/td>/g :%s/<\/td>/<\/td>/g :%s/<tr>/ <tr>/g :%s/<tr>/ <tr>/g :%s/<\/tr>/ <\/tr>/g :%s/<\/tr>/ <\/tr>/g :%s/<\/td>/ <\/td>/g :%s/<\/td>/ <\/td>/g :%s/<td>/ <td>/g :%s/<td>/ <td>/g :%s/<img src=.*graphics/<img src=images/ :%s/<img src=.*graphics/<img src=images/ :%s/img src="http:\/\/www.geoshitties.com\/blockhead src="images/ :%s/img src="http:\/\/www.geoshitties.com\/blockhead src="images/ :%s/<.*>//sg; # Matches TOO Much! It sees "<html>...</html>" :%s/<.*>//sg; # Matches TOO Much! It sees "<html>...</html>" as one big /<.*>/ (starts with "<" and ends with ">"). as one big /<.*>/ (starts with "<" and ends with ">"). :%s/<.*?>//g; # Solves the greediness problem by using the shortest :%s/<.*?>//g; # Solves the greediness problem by using the shortest :%s/<[^>]*>//g; # Also works. :%s/<[^>]*>//g; # Also works. * For more Regular Expressions see the [[RegEx and Vim Cookbook]].* See also [[Vi Short Command Reference]]* See also [[Vim Tips]]* See also [[Text Pattern RegEx in Perl]]* See also [[uniq]] [[Category:RegEx]]----<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">---->=[http://ehyvyqaheqo.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=---- ----<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">---->=[http://enamodyg.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=---- ----<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">----=[http://ahowulumus.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=----=[http://ahowulumus.co.cc CLICK HERE]=----</div> =[http://enamodyg.co.cc CLICK HERE]=----</div> =[http://ehyvyqaheqo.co.cc CLICK HERE]=----</div>