REGEX help please
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

REGEX help please

From: Defaultman <silane32@yahoo.com>
Date: Thu Sep 29 2005 - 13:48:15 CEST

Hi,

I have 2 issues concerning regex:

1) change a string of:
number\number\number to number/number/number

for example:
2\0 to 2/0
3\1\2 to 3/1/2

2) change a string of:
numbers to digit/digit/digit

for example:
321 to 3/2/1
18 to 1/8

Please help me with the PHP code, I have tried many hours and I
couldn't get it to work, thanks.
Received on Tue Oct 18 02:29:29 2005