<html>
<body>
<h1>Regex Modifier: [T-e]</h1>
<p>How many letters in the text "Welcome to W3Schools" are alphabetically between uppercase "T" and lowercase "e":</p>
$txt = "Welcome to W3Schools";
$pattern = "/[T-e]/";
echo preg_match_all($pattern, $txt);
<p>The matches were found here:</p>
echo preg_replace($pattern, "#", $txt);
<p>(Each match was replaced by a # character)</p>
</body>
</html>
How many letters in the text "Welcome to W3Schools" are alphabetically between uppercase "T" and lowercase "e":
6The matches were found here:
##l#om# to #3S#hools(Each match was replaced by a # character)