Welcome Nathan,

first the last 3 chars:

code:

$in = "1234567"
$out = substr($in,len($in)-3,3)
;$out should be now "567"

for that ingroup wildcard question : http://kixtart.org/board/Forum1/HTML/002163.html

Jochen

_________________________