Regex: How can I get the parameter from function?
Posted
by Xi
on Stack Overflow
See other posts from Stack Overflow
or by Xi
Published on 2010-03-09T22:18:33Z
Indexed on
2010/03/11
18:59 UTC
Read the original article
Hit count: 214
regex
Hi there:
I am working on getting parameter from a function string. For example, my function is named "translate". So all I need to do is to get everything inbetween "translate(" and ")". Is there a way that i can use regex to do that? So far I have something like:
"/translate\((?<keyName>*)\)/i"
Unfortunately it's not working. Can anybody help me with this one?
Thanks a lot!
© Stack Overflow or respective owner