Креирај НалогСакри Sidebar
Корисничко Име: 
Шифра: 
Ограничи сесију за IP 
Најбољих 10 Корисника

Level 3  Go to the Training: Regex challenge

Глобални Ранг: 15948
Коначни резултат: 84
Posts: 2
Thanks: 1
UpVotes: 1
Registered: 8y 77d
Last Seen: 7y 305d
The User is Offline
Level 3
Google/translate0Thank You!0Good Post!2Bad Post! link
my regex:
/^wechall4?(?=\.(jpg|png|bmp|gif|tiff))$/


so I tried this and apparently, it would not match "wechall.jpg"
But I can't see my mistake after browsing through this forum.
Can u please help me?

greets
Глобални Ранг: 1
Коначни резултат: 757187
Posts: 437
Thanks: 497
UpVotes: 472
Registered: 15y 303d












The User is Offline
RE: Level 3
Google/translate1Thank You!1Good Post!1Bad Post! link
The construct you use is checked, but isn't included in the actual match. So the "pointer" (if you will), is still at '.' after it. The next check is to see if it is at the end of the string, which will fail.

Read the documentation very carefully. ;)
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 6332 times.