[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: regexp in lua
- From: Walter Rodrigo de Sá Cruz <waltercruz@...>
- Date: Tue, 2 Aug 2005 10:07:08 -0300
Hey guys! I get in this list today :)
In PHP, I can make this with preg:
preg_match('/^(\/var\/www\/)(.*)/', '/var/www/files/index.php', $array_result);
and I will get:
$array_result[0] = /var/www/files/index.php
$array_result[1] = /var/www/
$array_result[2] = files/index.php
How can I get a similar thing in Lua ?
--
[]´s
- Walter
"A graça cria beleza a partir das coisas feias" (Bono Vox)