Variable name of code

Published on Tue Mar 01 2022

To get a variable name from a source code: The variable name is before the '=' (equal sign) This is the way to detect. Problem: 1. Only 1 variable can get from 1 line. 2. Unfortunately, this can get variable between after "//" and before ";" too. I made this for fake script debugger. Just get variable from source code and put that after last semicolon with so much tab and messagebox code for every line.

Additional matching regexes for
Variable name of code

Variable name of code

To get a variable name from a source code: The variable name is before the '=' (equal sign) This is the way to detect. Problem: 1. Only 1 variable can get from 1 line. 2. Unfortunately, this can get variable between after "//" and before ";" too. I made this for fake script debugger. Just get variable from source code and put that after last semicolon with so much tab and messagebox code for every line.

Variable, -> "Variable",

Add "" to variable before comma

white space before punctuations, outside script and code tags

white space before punctuations, outside script and code tags

Domain from URL

Matches everything before after // or www and before a period. If needed, replace the matched elements with blanks.

Capture comma separated numbers

Capture comma separated numbers, no matter if there are spaces before or after the commas.

Html tag parser

This regex will help you to parse html tag. Example ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <picture> <source srcset="mobile.png" ></source> <source srcset="tablet.png" ></source> <source srcset="desktop.png" ></source> <img srcset="default.png"> </picture> </body> </html> ``` Output ```html <picture> <source srcset="mobile.png" ></source> <source srcset="tablet.png" ></source> <source srcset="desktop.png" ></source> <img srcset="default.png"> </picture> ```

Azure ARM Template Parameter Override breakdown

This script helps you take the ARM template parameter override line from VSTS and break each variable combo down to its own line.

Replace variable value with variable

Replace variable value with variable

Comparison of decimals with operators such as <, >, !=, ==, <>

Regex expression for comparing decimal numbers with the usual comparison operators such as < (less than), <= (less than or equal to), > (greater than), >= (greater than or equal to), != (not equal to), == (equal to), ... The regex also allows filtering of data from e.g. a database, whereby the first value is not needed, e.g. [FIELD] < 100

Dim name

Gets all variable names