Username: 
Password: 
Restrict session to IP 

Level 3  Go to the Training: Regex challenge

1 2
Global Rank: 194
Totalscore: 107360
Posts: 14
Thanks: 12
UpVotes: 7
Registered: 12y 127d



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: 227
Totalscore: 94360
Posts: 1684
Thanks: 1360
UpVotes: 920
Registered: 16y 314d




Last Seen: 1d 10h
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: 12712
Totalscore: 279
Posts: 1
Thanks: 0
UpVotes: 1
Registered: 12y 91d
Last Seen: 4y 350d
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: 11y 281d
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: 14
Totalscore: 451589
Posts: 21
Thanks: 10
UpVotes: 12
Registered: 11y 40d
sisyang`s Avatar







Last Seen: 27d 15h
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: 14
Totalscore: 451589
Posts: 21
Thanks: 10
UpVotes: 12
Registered: 11y 40d
sisyang`s Avatar







Last Seen: 27d 15h
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, 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 77210 times.