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
Few best editors
http://regexr.com/
https://regex101.com/
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
http://regexr.com/
https://regex101.com/
Comments