Skip to content

Instantly share code, notes, and snippets.

@alexalannunes
Last active May 12, 2021 12:02
Show Gist options
  • Save alexalannunes/d5cb0cb32b24b8194e8d2ae7a7772b4e to your computer and use it in GitHub Desktop.
Save alexalannunes/d5cb0cb32b24b8194e8d2ae7a7772b4e to your computer and use it in GitHub Desktop.
regex to treat file reading
// [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