I want to extract the dimension from this given string.
$str = "enough for hitting practice. The dimension is 20'X10' *where";
preg_match_all ($regexForMinimumPattern, $str, $minimumPatternMatches);
Just remove the
\b from your pattern (and append a
\' in the end if you want the trailing quote):
\b is the meta-character for word-boundaries, you don't need it here.