CodeIgniter Forums

Full Version: Callback alpha with characters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]someone Smile[/eluser]
Hello,

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:
Code:
... return ( ! preg_match("/^([a-z])+$/i", $str)) ...

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

Thanks! :-)