Building simple regular expression

Building simple regular expression

Problem : I need to findout all the place holders starting & ending with ###'.

Sample string
---
config:
  application_config:
    app_server_name: ###app_server_name###
  database_config:
    databasename: Search
    databaseservername: ###databaseservername###
    sql_server_user: ###sql_server_user###
    sql_server_user_password: ###sql_server_user_password###
    usernames:
      - exporter_user
      - teamcity_user

Regex : /###\w+###/g

Few best editors 
http://regexr.com/
https://regex101.com/

Comments

Popular posts from this blog

FastEndpoint vs Minimal APIs vs Controller

Kick start 2021 😃😃

Work with Raspberry PI Zero W