Replace caracters not inside HTM tags

Published on Tue Mar 01 2022

Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.

Additional matching regexes for
Replace caracters not inside HTM tags

Replace caracters not inside HTM tags

Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.

Find a select or select top in a query

Some times we need replace de first select in a query to another. In my case i want replace to "Select top 1". With that a can replace any select to select top 1.

Get Nth value (3 times)

capture Nth character from string, 3 times

Replace Commas Inside Quotes

Regex to remove commas within quotes. (Common situtaion in .csv files) Eg: data,"some ""embedded"" stuff,commas,inside,quotes",more Replace String would be something like this: \1&\2&\3&\4&\5\&\6&\7&\8&\9 which would replace the commas inside the quotes with '&'s Caveats: * embedded quotes ("") remain in the matches * limit of 9 terms within quotes Work in progress ...

Replace \n by <br />

Replace non-ending string \n by the <br /> HTML tag

Links in string

Match links (emails included) in string Replace it with HTML links

Anything sorounded by " "

Match anything inside double quote string and set the first capture group with the content

replace-last-comma with semicolon

replace-last-comma with semicolon similar to http://stackoverflow.com/questions/3829483/how-to-replace-last-occurrence-of-characters-in-a-string-using-javascript

Element's Attribute Value in XML (simple)

Simple regular expression for extracting attribute value of the element in XML-string. Attribute value should be in quotes.

find single character

Why this regEx not find all single character? Why not work Start of string and End of string in bracket?