Results 1 to 3 of 3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573

    preg_replace

    , , utf8 .

    :

    Code:
    $var = preg_replace('/[^--A-Za-z0-9-]/', ' ', $string);
    $string * .
    : \u0430-\u044F

    : PCRE does not support \L, \l, \N, \U, or \u at...

    , preg_replace , .. mb_preg_replace, .

    , .

    (/) + , .

    !
    Last edited by BornToDrink; 2nd April 2009 at 14:35.
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  2. #2
    Registered User
    Join Date: Aug:2006
    Location: Sofia
    Posts: 37
    :
    Code:
    preg_replace('/[^a-z0-9-\pL]/ui', ' ', $str);

  3. #3
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    Quote Originally Posted by sunless View Post
    :


    , , !
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |