Reputation: 117
I am parsing an xml file in python. I fetch the attribute values of xml nodes for processing.
<set name="flashScope.emailSuggestion" value="userBean.createEmailSuggestion(flowRequestContext)" />
Using ElementTree, I get the attribute of the node
node.attrib['value']
which gives me
userBean.createEmailSuggestion(flowRequestContext)
Now how do I check if this string contains paranthesis ()
? (I mean, to know that it is a method call)..Can anyone suggest a regex pattern for this?
Upvotes: 1
Views: 46