Skip to content

Instantly share code, notes, and snippets.

<p:tabView>
<p:ajax event="tabChange" listener="#{bean.onTabChange}" />
<p:tab title="Tab 1" id="tab1">
//chart1
</p:tab>
<p:tab title="Tab 2" id="tab2">
//chart2
</p:tab>
$pattern = "/{{Taxobox[^}]*}}(.*?)==/";
if (preg_match($pattern, $pagecontent, $matches)) {
var_dump($matches);
}
Amancio Ortega
/{{Taxobox.*?}}(.*?)==/s
Inditex PSOE BBVA
$pattern = "/(?<=}})(.+)(?===))/ms";