php - Text Inside Parantheses with Smarty -
i have text .com registration (domain.com) or xl hosting (domain.com)
i want domain inside parantheses smarty.
how can that?
you can use following regex:
/(\([^)]+\))/g edit: in previous expression domain or whatever inside parentheses captured in group 1, can access matched in group.
if need replace except inside parentheses can use following expression:
\g[^(]*(\([^)]+\))
Comments
Post a Comment