Thank you for your quick attention to this matter! He is very much appreciated, thanks to everyone who commented, or offered insight!
Hi guys, I have a problem matching my id
I have a line like this in {/describe:foo} , where I try to match {/describe:} to return foo , but I donβt get the regex to the right, someone thought I did wrong? here is my match.
$regexp = '/\{describe:(.*?)\}/i'; $query = '{/describe:foo}'; preg_match($regexp, $query, $match); print_r($match); // (bool) false
Background I hope this can help others, for this itβs enough to justify creating replaceable manage words in a string that can be interpreted and replaced, here is an example of a RESTful poster that will run a handle on a control word.
if (preg_match('/\{describe:(.*?)\}/i', $_POST['query'], $match)) { // Describe Salesforce Object from internal POST tool print_r($SforceConnection->describeSObjects($match[1])); exit; }
ehime source share