[PHP] Re: (another) regex difficulty

2003-10-01 Thread Cristian Lavaque
Cristian Lavaque wrote: > Jonas_weber @ Gmx . Ch wrote: >> regular expressions >> the example below should turn any character exept "\*" (*= any char) >> into an "x": >> >> $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); >> >> but i guess because of the [brackets] the "." (period) is treated

[PHP] Re: (another) regex difficulty

2003-10-01 Thread Cristian Lavaque
Jonas_weber @ Gmx . Ch wrote: > regular expressions > the example below should turn any character exept "\*" (*= any char) > into an "x": > > $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); > > but i guess because of the [brackets] the "." (period) is treated as > character "." instead as me