Use $mid([color:red]string, n, 1) [/color]
Where, 'n' is the Nth character, and '1' is the number of characters you wish to return (1).
For example;
$mid(abc123,1,1) - returns 'a'
$mid(abc123,2,1) - returns 'b'
$mid(abc123,3,1) - returns 'c'
$mid(abc123,4,1) - returns '1'
$mid(abc123,5,1) - returns '2'
$mid(abc123,6,1) - returns '3'
EDIT: To save you some time...
alias stmatch {
if (!$2) { return ERR }
elseif ($len($1) != $len($2)) { return $false }
else {
var %i = $len($1)
while (%i) {
if ($mid($1,%i,1) !isin $2) { return $false }
dec %i
}
return $true
}
}
Syntax: //echo -> $stmatch(irmc,mirc)
Eamonn.