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

Level 3  Vai alla sfida "Training: Regex"

Posizione globale: 16511
Punteggio totale: 88
Posts : 2
Grazie: 1
Voti+: 1
Registrato: 9a 236gg
Ultima visita: 9a 99gg
L'utente è Offline
Level 3
Google/traduci0Grazie!0Bel post!2Brutto post! Link
my regex:
/^wechall4?(?=\.(jpg|png|bmp|gif|tiff))$/


so I tried this and apparently, it would not match "wechall.jpg"
But I can't see my mistake after browsing through this forum.
Can u please help me?

greets
Posizione globale: 2
Punteggio totale: 747640
Posts : 441
Grazie: 501
Voti+: 478
Registrato: 17a 97gg












L'utente è Offline
RE: Level 3
Google/traduci1Grazie!1Bel post!1Brutto post! Link
The construct you use is checked, but isn't included in the actual match. So the "pointer" (if you will), is still at '.' after it. The next check is to see if it is at the end of the string, which will fail.

Read the documentation very carefully. ;)
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 6788 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.