Answers for "get the charectors inside braces regex php"

PHP
1

get the charectors inside braces regex php

$text = 'ignore everything except this (text)';
preg_match('#\((.*?)\)#', $text, $match);
print $match[1];
Posted by: Guest on April-03-2022

Code answers related to "get the charectors inside braces regex php"

Browse Popular Code Answers by Language