Username: 
Password: 
Restrict session to IP 

Level 3  Go to the Training: Regex challenge

1 2
Global Rank: 162
Totalscore: 127830
Posts: 14
Thanks: 15
UpVotes: 9
Registered: 14y 89d




The User is Offline
RE: Level 3
Google/translate0Thank You!0Good Post!0Bad Post! link
I've tested my solution and give me the answer: "Your pattern would match "wechallxjpg", but it should not match it."

wechallxjpg?
Global Rank: 200
Totalscore: 110756
Posts: 1841
Thanks: 1438
UpVotes: 1016
Registered: 18y 276d




Last Seen: 52m 58s
The User is Offline
RE: Level 3
Google/translate0Thank You!0Good Post!0Bad Post! link
Try to escape the \\.
The geeks shall inherit the properties and methods of object earth.
Global Rank: 13581
Totalscore: 286
Posts: 1
Thanks: 0
UpVotes: 1
Registered: 14y 53d
Last Seen: 6y 312d
The User is Offline
RE: Level 3
Google/translate0Thank You!1Good Post!0Bad Post! link
Hi!
I can not find the way to remove 2 more character. The expression is okay, but too long. Can you show me the way?
/^wechall[4]?\.(?:jpg|gif|tiff|bmp|png)$/
Totalscore: 0
Posts: 1
Thanks: 3
UpVotes: 1
Registered: 13y 244d
The User is Offline
RE: Level 3
Google/translate3Thank You!1Good Post!0Bad Post! link
And He said: "There should be no square brackets, my son."
Last edited by blesser - Mar 27, 2013 - 02:17:09
Global Rank: 9
Totalscore: 567517
Posts: 26
Thanks: 17
UpVotes: 18
Registered: 13y 3d
sisyang`s Avatar







Last Seen: 7h 29m
The User is Offline
RE: Level 3
Google/translate0Thank You!0Good Post!0Bad Post! link
Your pattern would capture a string, but this is not wanted. Please use a non capturing group.

what does i mean??

thank u. regards.
Global Rank: 9
Totalscore: 567517
Posts: 26
Thanks: 17
UpVotes: 18
Registered: 13y 3d
sisyang`s Avatar







Last Seen: 7h 29m
The User is Offline
RE: Level 4
Google/translate0Thank You!0Good Post!0Bad Post! link
thank u, i solved the regexp..
1 2
sisyang, Redknee, AIHAPPLE, zhukeni, alibaba2024, silenttrack, n0tHappy, nonfungiblesecurity, quangntenemy, TheHiveMind, Z, balicocat, Ge0, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0, fpombal, csuquvq, Psycho01010, Randy9989 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 78976 times.