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

Level 3 . Strange error  Vai alla sfida "Training: Regex"

Posizione globale: 10598
Punteggio totale: 536
Posts : 3
Grazie: 0
Voti+: 0
Registrato: 14a 74gg
Ultima visita: 6a 195gg
L'utente è Offline
Level 3 . Strange error
Google/traduci0Grazie!0Bel post!0Brutto post! Link
This is my regex:
[CENSORED]


It keeps telling me that the pattern identifies "wechall4.jpf" but it shouldn't....
I've tested my pattern in an online tool site (regexr.com) and it works...so why it keeps telling me that?
Ultima modifica: dloser - 05 Apr 2018 - 19:13:54
Posizione globale: 2
Punteggio totale: 747640
Posts : 441
Grazie: 501
Voti+: 478
Registrato: 17a 97gg












L'utente è Offline
RE: Level 3 . Strange error
Google/traduci0Grazie!1Bel post!0Brutto post! Link
I tried your regex on the site you mentioned and it indeed matched wechall4.jpf. No sure what you would do different to not get it to match.

You are making a mistake in your syntax, making the final part match only one character...
Posizione globale: 10598
Punteggio totale: 536
Posts : 3
Grazie: 0
Voti+: 0
Registrato: 14a 74gg
Ultima visita: 6a 195gg
L'utente è Offline
RE: Level 3 . Strange error
Google/traduci0Grazie!0Bel post!0Brutto post! Link
I also tried this pattern

[CENSORED]


and it tells that "my pattern captures a string and this is unnecessary. Use a non capturing group".
I then changed it into this:

[CENSORED]


and it says again that it captures wechall.jpf and it shouldn't
Ultima modifica: dloser - 05 Apr 2018 - 19:25:16
Posizione globale: 10598
Punteggio totale: 536
Posts : 3
Grazie: 0
Voti+: 0
Registrato: 14a 74gg
Ultima visita: 6a 195gg
L'utente è Offline
RE: Level 3 . Strange error
Google/traduci0Grazie!0Bel post!0Brutto post! Link
Yeah, you're right. I was wrong because in that site the first pattern I wrote (and the third too)..match wechall.jpf...but the second I posted, the one with rounded parenthesys, doesn't match it. It works perfectly in the site
Posizione globale: 2
Punteggio totale: 747640
Posts : 441
Grazie: 501
Voti+: 478
Registrato: 17a 97gg












L'utente è Offline
RE: Level 3 . Strange error
Google/traduci1Grazie!0Bel post!0Brutto post! Link
Yes, you seem to misunderstand the function of the characters in the first and third example. Try looking it up. (Or looking it up in another place?)

The second one indeed works, but does more than requested, which is why you get the error you get.

I'd prefer it if you don't post spoilers at all. You can always talk in private (PM or IRC) if you want to go into details.
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 4559 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.