g" '$substring'
$substring is a regular expression.
expr "$string" : '$substring'
$substring is a regular expression.
stringZ=abcABC123ABCabc
# |------|
echo... ex $string $substring
</code>
Numerical position in $string of first character in $substring that ... # C position.
echo `expr index "$stringZ" 1c` #