Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In PHP:</p> <pre><code>&lt;?php $input = ' class : putmeincoach, id : random_id, responsive : { [ type= text ; html = "&amp;lt; iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/myplaces?ctz=480&amp;amp;ie=UTF8&amp;amp;ll=34.009394,-118.488514&amp;amp;spn=0.020687,0.020921&amp;amp;t=m&amp;amp;z=16"&amp;gt; &amp;lt; /iframe &amp;gt;" ; ] }, testsinglequotes: \'hello world\', testdoublequotes: "hello hello"'; $pattern = '/ \b(\w+)\s*: # capture the word before the colon \s*( # start capture group match after the colon {[^}]*}\s*| # match everything between braces OR "[^"]*"\s*| # match everything between double quotes OR \'[^\']*\'\s*| # match everything between single OR [^,]* # match everything up to the comma ) # end capture group (?:,|$) # match comma or end of string (non-capture group) /x'; preg_match_all($pattern ,$input, $matches); print_r($matches); ?&gt; </code></pre> <p>Output PHP 5.3.13:</p> <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; class : putmeincoach, [1] =&gt; id : random_id, [2] =&gt; responsive : { [ type= text ; html = "&amp;lt; iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/myplaces?ctz=480&amp;amp;ie=UTF8&amp;amp;ll=34.009394,-118.488514&amp;amp;spn=0.020687,0.020921&amp;amp;t=m&amp;amp;z=16"&amp;gt; &amp;lt; /iframe &amp;gt;" ; ] }, [3] =&gt; testsinglequotes: 'hello world', [4] =&gt; testdoublequotes: "hello hello" ) [1] =&gt; Array ( [0] =&gt; class [1] =&gt; id [2] =&gt; responsive [3] =&gt; testsinglequotes [4] =&gt; testdoublequotes ) [2] =&gt; Array ( [0] =&gt; putmeincoach [1] =&gt; random_id [2] =&gt; { [ type= text ; html = "&amp;lt; iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/myplaces?ctz=480&amp;amp;ie=UTF8&amp;amp;ll=34.009394,-118.488514&amp;amp;spn=0.020687,0.020921&amp;amp;t=m&amp;amp;z=16"&amp;gt; &amp;lt; /iframe &amp;gt;" ; ] } [3] =&gt; 'hello world' [4] =&gt; "hello hello" ) ) </code></pre> <p>Regex is your friend</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload