- Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
- Text comprised solely of one or more delimiting substrings
<?php
$address = "#&#&#&";
$delimiter = '#&';
if (preg_match('~^(?:' . preg_quote($delimiter) . ')+$~', $address)) {
echo 'Text comprised solely of one or more delimiting substrings';
}