[Quickie] What's wrong with this regex? - 03/01/14 03:06 PM
Code:
%count = $regex($1-,/\bLion\b|\bTiger\b/g)
It registers Lion when you type 'lion' alone, but not 'tiger' when you type it alone. Other than that it works fine.
Thanks.
%count = $regex($1-,/\bLion\b|\bTiger\b/g)
%count = $regex($1-,/(?:^|\s)(?:lion|tiger)\b/gi)
%count = $regex($1-,/(?:^|\s)(?:Lion|Tiger)\b/g)
on $*:TEXT:/Tiger|Lion/:#:
$regex($1-,/(?:^|\s)(?:Lion|Tiger)\b/g)