![]() |
|
|
+ Search |
![]()
|
Dec 1st, 2003 14:22
Jakub Vrana, Niclas Marie,
man 7 regex says:
To include a literal `]' in the list, make it the first character
(following a possible `^'). To include a literal `-', make it the
first or last character.
So removing azAZ09_-[] can be made by:
<?php
$string = ereg_replace("[^]a-zA-Z0-9_[-]", "", $string);
?>