Nome Utente: 
Password : 
Restringi sessione all'IP 
Online in 1gg

what should i do?  Vai alla sfida "Training: Regex"

Posizione globale: 4659
Punteggio totale: 3963
Posts : 10
Grazie: 2
Voti+: 5
Registrato: 13a 321gg
Avatar di hdarwin
Ultima visita: 9a 327gg
L'utente è Offline
what should i do?
Google/traduci0Grazie!0Bel post!0Brutto post! Link

/wechall4?(?=\.jpg$|\.png$|\.bmp$|\.gif$|\.tiff$)/


in my test cases my pattern matches all expectable words!

but i cant solv this challenge!!

you know that regular expression is flexible! but it seems like receive kinda static pattern..

and challenge's explanation is ambiguous!
Posizione globale: 756
Punteggio totale: 35514
Posts : 18
Grazie: 14
Voti+: 17
Registrato: 13a 322gg
Ultima visita: 13a 289gg
L'utente è Offline
RE: what should i do?
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Wouldn't your pattern match xwechall4.jpg too? ;)

And maybe you shouldn't repeat stuff in your pattern since you can write it only once.
Ultima modifica: mnlight - 31 Dic 2012 - 05:03:49
Posizione globale: 4659
Punteggio totale: 3963
Posts : 10
Grazie: 2
Voti+: 5
Registrato: 13a 321gg
Avatar di hdarwin
Ultima visita: 9a 327gg
L'utente è Offline
RE: what should i do?
Google/traduci0Grazie!0Bel post!0Brutto post! Link

/^wechall4?(?=\.jpg|\.png|\.bmp|\.gif|\.tiff$)/


how about this?
Posizione globale: 756
Punteggio totale: 35514
Posts : 18
Grazie: 14
Voti+: 17
Registrato: 13a 322gg
Ultima visita: 13a 289gg
L'utente è Offline
RE: what should i do?
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Not ok. You still have stuff that you could write only once. And some things shouldn't be enclosed.
Posizione globale: 4659
Punteggio totale: 3963
Posts : 10
Grazie: 2
Voti+: 5
Registrato: 13a 321gg
Avatar di hdarwin
Ultima visita: 9a 327gg
L'utente è Offline
RE: what should i do?
Google/traduci0Grazie!0Bel post!0Brutto post! Link
thanks a lot!
Redknee, AIHAPPLE, zhukeni, alibaba2024, silenttrack, n0tHappy, nonfungiblesecurity, quangntenemy, TheHiveMind, Z, balicocat, Ge0, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, fpombal, csuquvq utenti hanno sottoscritto il thread e ricevo le E-Mail di notifica.
1 persone stanno visualizzando il thread.
Questo thread è stato visualizzato 9481 volte.

PHP Fatal Error(1): Constant E_STRICT is deprecated since 8.4, the error level was removed in www/protected/config.php line 6


Backtrace starts in [unknown file] line ?. GWF_Debug::shutdown_function() core/inc/util/GWF_Debug.php line 109. GWF_Debug::error_handler().... core/inc/util/GWF_Debug.php line 180.