Regex- remove all except letters and numbers?

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28
What si regex for -remove all but except letters and numbers.

I grab some title, this title to be name of txt file, example :

***A Celebration Of Jessica Biel ^ &2012***

txt file can not create if have some special characters.

I find some code for find all special characters:

[^a-zA-Z0-9 ]

But can not remove?

Thanks
 

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28
I just testing hard way, put 8 word procesing replace options, put all characters, and replace with nothing ( *,&," .... ) , but i must, create variable, circle... Easy way is sure real regex code for this .
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113
  • Спасибо
Реакции: aleksa77

aleksa77

Client
Регистрация
30.09.2011
Сообщения
914
Благодарностей
90
Баллы
28

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)