isExpression: Bitrix method

      
<?php 
//  isExpression()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:1253

    
public static function isExpression($text)
    {
        if (
is_string($text))
        {
            
$text trim($text);
            if (
preg_match(static::CalcPattern$text) || preg_match(static::ValuePattern$text))
                return 
true;
        }
        return 
false;
    }