Last active
May 12, 2021 12:02
-
-
Save alexalannunes/d5cb0cb32b24b8194e8d2ae7a7772b4e to your computer and use it in GitHub Desktop.
regex to treat file reading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [1]: ^#.+ => regex para remover comentarios | |
// [2]: ^\s*$ ou (\n|\s)$ => regex para remover linhas em branco | |
// [3]: (.+[a-z]|\n)$ => regex para verificar chave sem igual (=) | |
// file.cfg | |
// [1] | |
####################################################################################### | |
## Anonymous ## | |
####################################################################################### | |
account.1.anonymous_call.server_base_only = | |
// [2] | |
account.1.send_anonymous_rejection_code //[3] = $1= (repeat key and apend =) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment