regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
replace test
Published on Tue Mar 01 2022
Regex
Test String
Additional matching regexes for
replace test
Replace variable value with variable
Replace variable value with variable
Pinguino regex
Used for replace words from .pdl
Escape non-Ascii Character
Replace non-ascii characters with empty spaces.
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.
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
Remove common numeric suffixes (eg: 40m, 60%)
Usage: "40%".replace(/\b([\d\.]+)[mkb%](?!\S)/ig, '$1')
Replace \n by <br />
Replace non-ending string \n by the <br /> HTML tag
replace between brackets 3
replace multiple matches of words in brackets with no brackets
Find PHP object variables
Find PHP object variables, and replace them with (array)brackets.
Find php short echo tags
Find instances of <?=$some_variable?> Usefult to replace with <?php echo $some_variable ?>