Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
[PHP] Regular expression za slova s kvačicama

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
maXimus



Joined: 05 Dec 2005
Posts: 55
Location: Zagreb

PostPosted: 14.02.2007 17:02    Post subject: [PHP] Regular expression za slova s kvačicama Add user to your forum ignore list Reply with quote

Da li postoji neki način da se regular expression-om može obuhvatiti slova sa kvačicama (ž,č.ć,š, đ)?
Back to top
View user's profile Send private message
Tristan



Joined: 01 Aug 2006
Posts: 614
Location: Under the sky

PostPosted: 14.02.2007 17:03    Post subject: Add user to your forum ignore list Reply with quote

Možda [šŠ] ako trebaš velko il malo??

_________________
Carpe diem...
Back to top
View user's profile Send private message Visit poster's website
maXimus



Joined: 05 Dec 2005
Posts: 55
Location: Zagreb

PostPosted: 14.02.2007 17:30    Post subject: Add user to your forum ignore list Reply with quote

da znaš da radi tako

trebalo bi to provjeravat po ascii vrijednosti, samo neznam da li se to može u regular expression
Back to top
View user's profile Send private message
Tristan



Joined: 01 Aug 2006
Posts: 614
Location: Under the sky

PostPosted: 14.02.2007 17:51    Post subject: Add user to your forum ignore list Reply with quote

pa trebalo bi moć...

_________________
Carpe diem...
Back to top
View user's profile Send private message Visit poster's website
carr



Joined: 13 Nov 2003
Posts: 1397
Location: Karlovac

PostPosted: 15.02.2007 21:52    Post subject: Add user to your forum ignore list Reply with quote

koji encoding koristis? mozda bi sljakalo ako ti je fajl i baza u UTFu?

_________________
Bolje biti malo lud, nego malo pametan.
Back to top
View user's profile Send private message Visit poster's website
maXimus



Joined: 05 Dec 2005
Posts: 55
Location: Zagreb

PostPosted: 18.02.2007 00:22    Post subject: Add user to your forum ignore list Reply with quote

Evo, ovo je rješenje za velika slova (vrijedosti u vitičastim zagradama su hex vrijednosti palatala):

preg_match('/^[A-Z\x{17D}\x{16}\x{110}\x{106}\x{10C}]+$/u', $value);
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group