Results 1 to 2 of 2

Thread: mb_ereg check string for UTF-8

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Posts
    156

    Question mb_ereg check string for UTF-8

    Hi,
    How can i check input string using mb_ereg? for UTF-8?
    Thanks for help.

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: mb_ereg check string for UTF-8

    the example in the comments on PHP.net for this function seems like it might help?

    PHP Code:
    echo "Line "
    if(
    mb_ereg(".*([א-ת]).*"$this->current_line))
    {
        echo 
    "has";
    }
    else
    {
        echo 
    "doesn't have";
    }
    echo 
    " Hebrew characters.<br>"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width