Console.log line deletion, multi line.

Published on Tue Mar 01 2022

Additional matching regexes for
Console.log line deletion, multi line.

parse salesforce records

parse one column query from sf developer console

single ling prop to multi line

single ling prop to multi line

Conventional Commit Footer

Supports multi line value for git trailers with lookahead for beginning of next git trailer

Person NAME verification

Regular Expression ``` ^[a-zA-Z ]{2,30}$ ``` - Allow only letters and space between each characters to support for multi word single name. Only accepts english letter characters.

Browser Console - Format Specifier

Captures format specifiers commonly used in logging and console messages, as defined in [the current whatwg/console spec](https://console.spec.whatwg.org/#formatter): - `%s`: Formats the value as a string - `%i`: Formats the value as an integer - `%d`: Formats the value as an integer - `%f`: Formats the value as a floating point value - `%o`: Formats the value as an expandable DOM element. As seen in the Elements panel - `%O`: Formats the value as an expandable JavaScript object - `%c`: Applies CSS style rules to the output string as specified by the second parameter

Browser Console - Format Specifier

Captures format specifiers commonly used in logging and console messages, as defined in [the current whatwg/console spec](https://console.spec.whatwg.org/#formatter): - `%s`: Formats the value as a string - `%i`: Formats the value as an integer - `%d`: Formats the value as an integer - `%f`: Formats the value as a floating point value - `%o`: Formats the value as an expandable DOM element. As seen in the Elements panel - `%O`: Formats the value as an expandable JavaScript object - `%c`: Applies CSS style rules to the output string as specified by the second parameter

Simple person name verification

Regular Expression `^[a-zA-Z ]{2,50}$` - Allow only letters a-z and space between each character to support multi-word single names. - Prone to errors in repeated spaces, to be cleanup by the app. Minimum 2 characters and max 50.

Strip multi-line (star) comments from JavaScript, while leaving any CDATA sections intact.

This regular expression removes multi-line (star) comments from JavaScript, while leaving any CDATA sections intact. Use the global (g) modifier to match them all (if you plan to use PHP's preg_replace, the g modifier is not necessary), and use the (s) modifier to make dots match newlines (this will be required in for using with PHP's preg_replace function). This regular expression does not exhaust all possibilities (such as a space between the opening or closing star comment and the CDATA tag), but it functions if the style guidelines are of the more popularized variety.