Username: 
Password: 
Restrict session to IP 

what should i do?  Go to the Training: Regex challenge

Global Rank: 4178
Totalscore: 3963
Posts: 10
Thanks: 2
UpVotes: 5
Registered: 9y 295d
hdarwin`s Avatar
Last Seen: 5y 301d
The User is Offline
what should i do?
Google/translate0Thank You!0Good Post!0Bad Post! link

/wechall4?(?=\.jpg$|\.png$|\.bmp$|\.gif$|\.tiff$)/


in my test cases my pattern matches all expectable words!

but i cant solv this challenge!!

you know that regular expression is flexible! but it seems like receive kinda static pattern..

and challenge's explanation is ambiguous!
Global Rank: 669
Totalscore: 35496
Posts: 18
Thanks: 14
UpVotes: 16
Registered: 9y 297d
Last Seen: 9y 264d
The User is Offline
RE: what should i do?
Google/translate0Thank You!0Good Post!0Bad Post! link
Wouldn't your pattern match xwechall4.jpg too? ;)

And maybe you shouldn't repeat stuff in your pattern since you can write it only once.
Last edited by mnlight - Dec 31, 2012 - 05:03:49
Global Rank: 4178
Totalscore: 3963
Posts: 10
Thanks: 2
UpVotes: 5
Registered: 9y 295d
hdarwin`s Avatar
Last Seen: 5y 301d
The User is Offline
RE: what should i do?
Google/translate0Thank You!0Good Post!0Bad Post! link

/^wechall4?(?=\.jpg|\.png|\.bmp|\.gif|\.tiff$)/


how about this?
Global Rank: 669
Totalscore: 35496
Posts: 18
Thanks: 14
UpVotes: 16
Registered: 9y 297d
Last Seen: 9y 264d
The User is Offline
RE: what should i do?
Google/translate0Thank You!0Good Post!0Bad Post! link
Not ok. You still have stuff that you could write only once. And some things shouldn't be enclosed.
Global Rank: 4178
Totalscore: 3963
Posts: 10
Thanks: 2
UpVotes: 5
Registered: 9y 295d
hdarwin`s Avatar
Last Seen: 5y 301d
The User is Offline
RE: what should i do?
Google/translate0Thank You!0Good Post!0Bad Post! link
thanks a lot!
Redknee, AIHAPPLE, zhukeni, tunelko, silenttrack, n0tHappy, quangntenemy, TheHiveMind, Z, balicocat, Ge0, samuraiblanco, arraez, jcquinterov, hophuocthinh, alfamen2, burhanudinn123, Ben_Dover, stephanduran89, braddie0 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 6966 times.