Regular Expression to find search text between parentheses
Posted on 2011-09-12
I am looking for a regular expression to use in a PHP preg_match function call that will find a search text anywhere in the search string where the search text is between open and close parentheses, i.e. like:
$postVal = "find me"
$pdfdata = "This is a test of a string that (will find me between) parentheses.
I have this for starter, but not quite correct. I basically want to find whole words or phrases that are between the parentheses, as this how it is formatted in the pdf document that I am searching.