CodeIgniter Forums
Callback alpha with characters - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Callback alpha with characters (/thread-48204.html)

Callback alpha with characters - El Forum - 01-08-2012

[eluser]someone Smile[/eluser]

I'm looking for callback function which accept characters (čćžšđ). If I use default CI's set_rules function I got error message, so I would like to create some callback function with preg_match.

This is piece of default code for alpha function in CI:
... return ( ! preg_match("/^([a-z])+$/i", $str)) ...

What I must add to get characters čćžšđ?

Thanks! :-)