Dice Regex with Modifier

Published on Tue Mar 01 2022

Additional matching regexes for
Dice Regex with Modifier

rsyslog test

global modifier

BEM

CSS Coding Guideline **BEM** (Block Element Modifier)

Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier

Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier. Nexus 9xxxx don't have the json output modifier. It's a LINUX based os, so | json would fork a json binary which doesn't exist

printf conversion specification parsing

Parses `printf` conversion specifications. This version detects multiple flags and ` `(space) flag. MSVC length modifier `I64` is also supported. I'm using this regex in my Python project, so please change accordingly if you use other flavor of regex.

Match multiline comments /* ... */

It won't match single line comments like this one: //* This comment won't be match */ ^ see the double / Works in PHP without the g modifier.

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.

Color RegEx

Color RegEx

camelCase2snake_case

Convert camelCase to snake_case. In `Python` the `\L` case modifier in the substitution pattern to lower case is not supported. ```py def camelCase2snake_case(txt): """ Convert camelCase to snake_case https://regex101.com/r/D3a0de/2/ """ txt = re.sub(r'([A-Z]+)', '_\\1', txt.strip()) txt = txt.lower() return txt ``` [JV-conseil](https://github.com/JV-conseil)

Discord emoji regex

Discod emoji regex

Regex Alamat

Regex untuk Alamat