CBPDocument :: parseExpression: Bitrix method

      
<?php 
//  CBPDocument :: parseExpression()
//  /dist/bitrix/modules/bizproc/classes/general/document.php:1576

    
public static function parseExpression($expression)
    {
        
$matches null;
        if (
is_string($expression) && preg_match(CBPActivity::ValuePattern$expression$matches))
        {
            
$result = array(
                
'object' => $matches['object'],
                
'field' => $matches['field'],
                
'modifiers' => array()
            );
            if (!empty(
$matches['mod1']))
                
$result['modifiers'][] = $matches['mod1'];
            if (!empty(
$matches['mod2']))
                
$result['modifiers'][] = $matches['mod2'];

            return 
$result;
        }
        return 
false;
    }