Groups
Groups
Sign in
Groups
Groups
PHP Baixada
Conversations
About
Send feedback
Help
OFF - Expressões regulares
4 views
Skip to first unread message
Nelson o mesmo
unread,
Dec 28, 2013, 6:17:53 PM
12/28/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nelson Silva
Boa noite!
Como faço para eliminar #%$&*()0-9=+}][}?;:.<.......
Usei o comando abaixo, porem sem sucesso
[!-@]
sed 's/[!-@]/\n/g;'
Yuri Teixeira
unread,
Jul 22, 2015, 6:49:10 AM
7/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PHP Baixada, nelsonph...@gmail.com, nelso...@hotmail.com
Você pode usar preg_replace + [<lista_de_caracteres>]. Exemplo
>>> preg_replace("/[ab]/", "", "abc")
=> "c"
Ou seja, na string "abc", substituir a ou b ou string vazia, o que vai resultar na string "c"
Abs!
Reply all
Reply to author
Forward
0 new messages