Có một Regex phổ biến được sử dụng để slugify các url ~[^\\pL\d]+~u
nhưng những gì hiện \\pL
trong preg_replace()
đầu tiên có nghĩa là gì?Mẫu regex 'pL' làm gì?
Dưới đây là một số ví dụ:
- How can I replace ":" with "/" in slugify function?
- http://snipplr.com/view/22741/slugify-a-string-in-php/
- http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php
- http://www.daniweb.com/web-development/php/threads/471380/php-slugify-two-variables-together
Tham khảo: http://www.regular-expressions.info/unicode.html#category –
Bạn không thể tìm thấy chúng? Bạn đã nhìn chưa? Googling 'regex \\ pL' dẫn trực tiếp đến điều này: http://www.regular-expressions.info/unicode.html – germi