Posts

Showing posts from November, 2015

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/