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

level 4  Vai alla sfida "Training: Regex"

Posizione globale: 566
Punteggio totale: 46996
Posts : 37
Grazie: 21
Voti+: 24
Registrato: 14a 26gg
Avatar di stormsurfer



Ultima visita: 9a 136gg
L'utente è Offline
level 4
Google/traduci0Grazie!0Bel post!0Brutto post! Link
I added ? after \. and after the extensions in the () of level 3 but it doesn't catch. I tried the same regex with sed and it found all the posibilities (wechall,wechall4,wechall.ext, wechall4.ext). What's wrong?

Also there'a a bug, when you use [, [], more then 3 ? in a row, or any char that isn't a modifier as a modifier, the script doesn't filter it and spits out a preg_match error.
Posizione globale: 109
Punteggio totale: 173510
Posts : 100
Grazie: 108
Voti+: 70
Registrato: 17a 41gg




Ultima visita: 5a 313gg
L'utente è Offline
RE: level 4
Google/traduci1Grazie!0Bel post!0Brutto post! Link
Just catch the first group i.e. the filename then do not catch the extension part.
Posizione globale: 566
Punteggio totale: 46996
Posts : 37
Grazie: 21
Voti+: 24
Registrato: 14a 26gg
Avatar di stormsurfer



Ultima visita: 9a 136gg
L'utente è Offline
RE: level 4
Google/traduci0Grazie!1Bel post!0Brutto post! Link
I don't understand. It sais: "wechall4.jpg should capture/return wechall4 in your pattern now"
so for wechall4.jpg I should only see wechall4. But there are no substitusions in this challenge so I can't put () around an object and print it with \1 or $1.
I tried just the filename with and without 4? and removed the ending $ but it still sais "Your pattern does not capture the wanted string correctly."
Redknee, AIHAPPLE, zhukeni, alibaba2024, silenttrack, n0tHappy, nonfungiblesecurity, stormsurfer, 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 9334 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.