Username: 
Password: 
Restrict session to IP 

Level 3 . Strange error  Go to the Training: Regex challenge

Global Rank: 9966
Totalscore: 527
Posts: 3
Thanks: 0
UpVotes: 0
Registered: 12y 129d
Last Seen: 4y 250d
The User is Offline
Level 3 . Strange error
Google/translate0Thank You!0Good Post!0Bad 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?
Last edited by dloser - Apr 05, 2018 - 19:13:54
Global Rank: 1
Totalscore: 758910
Posts: 437
Thanks: 497
UpVotes: 470
Registered: 15y 152d












The User is Offline
RE: Level 3 . Strange error
Google/translate0Thank You!1Good Post!0Bad 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...
Global Rank: 9966
Totalscore: 527
Posts: 3
Thanks: 0
UpVotes: 0
Registered: 12y 129d
Last Seen: 4y 250d
The User is Offline
RE: Level 3 . Strange error
Google/translate0Thank You!0Good Post!0Bad 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
Last edited by dloser - Apr 05, 2018 - 19:25:16
Global Rank: 9966
Totalscore: 527
Posts: 3
Thanks: 0
UpVotes: 0
Registered: 12y 129d
Last Seen: 4y 250d
The User is Offline
RE: Level 3 . Strange error
Google/translate0Thank You!0Good Post!0Bad 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
Global Rank: 1
Totalscore: 758910
Posts: 437
Thanks: 497
UpVotes: 470
Registered: 15y 152d












The User is Offline
RE: Level 3 . Strange error
Google/translate1Thank You!0Good Post!0Bad 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, tunelko, silenttrack, n0tHappy, nonfungiblesecurity, quangntenemy, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, SwolloW, dangarbri, csuquvq have subscribed to this thread and receive emails on new posts.
1 people are watching the thread at the moment.
This thread has been viewed 3772 times.