we can use it for strings in MS Dynamics AX like this :
static void LikeTest()
{

    str str;
    ;
    str="expiry";

    if(str like "exp*")
       info('"like work ");
}