INI Parser

Published on Tue Mar 01 2022

Created for purpose of reading an INI file in C# applications. Supports comments and comment escape characters. I plan to add more escape characters (such as \=). s - Section scp - Section Comment Prefix sc - Section Comment k - Key v - Value kvcp - KeyValue Comment Prefix kvc - KeyValue Comment cp - Comment Prefix c - Comment I am open to any suggestion that may improve upon this regex, and/or would allow me to learn more. <br /> ##### Created by [Raxdiam](https://github.com/Raxdiam)

Additional matching regexes for
INI Parser

INI Parser

Created for purpose of reading an INI file in C# applications. Supports comments and comment escape characters. I plan to add more escape characters (such as \=). s - Section scp - Section Comment Prefix sc - Section Comment k - Key v - Value kvcp - KeyValue Comment Prefix kvc - KeyValue Comment cp - Comment Prefix c - Comment I am open to any suggestion that may improve upon this regex, and/or would allow me to learn more. <br /> ##### Created by [Raxdiam](https://github.com/Raxdiam)

Escape Special Characters

Escapes special characters. Reference: http://www.php.net/manual/en/function.mysql-real-escape-string.php

http url regex

general purpose HTTP URL regex

jonfir-question

its mysql config file, i need find user only [client] section (or take sure shat its section not content user)

Match String ( /* 1 */)

Matches the comment string from Robo3T exports

MIME type verification

See http://tools.ietf.org/html/rfc2045#section-5.1

ip/host:port parser (proxy lists)

simple ip:port or host:port parser capturing ip or host and port, usually used for proxy lists

IRC protocol global parsing

1. prefix (IRC protocol prefix parsing) 2. command 3. parameters (IRC protocol arguments parsing)

foder add prefix

auto prefix ("/") to folder

Regex for chatbot to match & extract multiple command

Example: "/lowercase HELLO .:uppercase ::weather london" ===Match #1 prefix: / command: lowercase arguments: HELLO ===Match #2 prefix: .: command: uppercase arguments: - ===Match #3 prefix: :: command: weather arguments: london