Array and Match_RegExp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Array and Match_RegExp

Richard Taubo
Hi!


I have a few questions about Arrays and Match_RegExp as found in the
following code with comments/questions below:

<?LassoScript
// **Why does this work**:

Variable: 'myArray' = (array: 1 = 'test');
$myArray -> (find:  1);
// => Returns as expected: array: (pair: (1)=(test))
'<br>';


//**. . .  and this work**:

Variable: 'myArray' = (array: 1);
$myArray -> (find:  (Match_RegExp: 1));
// => Returns as expected: array: (1)
'<br>';


// **. . . but not this???**:

Variable: 'myArray' = (array: 1 = 'test');
$myArray -> (find:  (Match_RegExp: 1));
// => Returns: array, BUT I thougth it would return: array: (pair:
(1)=(test)) ???
?>

Thanks for input! :-)

Best regards,
Richard Taubo


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage