Take the 2-minute tour ×

Can someone please provide me a regex for match word like ${reg.employee.name} or ${reg.gihan.anuruddha} etc. In here word inside ${} pattern and always starting reg. Rest of the word count after period can be vary. Some times you can have 3 word like ${reg.emp.name} and sometimes for ${reg.tech.emp.name} word count that divide from period(.) can be vary after ${reg. part. I hope my question is clear. Thanks in advanced.

share|improve this question
whathaveyoutried.com ? –  Sudipta Chatterjee Mar 3 '13 at 6:28
Super simple version: \$\{reg\..+?\} –  dfsq Mar 3 '13 at 6:37

1 Answer 1

up vote 1 down vote accepted

This should match your strings:


If it is literally 3 or 4 groups (including "reg"):

share|improve this answer
Thanks a lot. I was looking this. –  Gihan Anuruddha Mar 3 '13 at 7:02

Your Answer


