tag:blogger.com,1999:blog-7705858543089750008.post5028637491003505667..comments2022-08-22T19:48:22.407-07:00Comments on php, javascript, jquery - My ideas and research: How to change PHP's eregi to preg_matchImahttp://www.blogger.com/profile/15959917170400080415noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7705858543089750008.post-65852850152418194532015-10-12T22:20:26.319-07:002015-10-12T22:20:26.319-07:00Its explained above. To make it simple
1. Replace ...Its explained above. To make it simple<br />1. Replace the pattern like [[:alnum:]] with PCRE equivalent(Eg: [a-z0-9])<br />2. Add pattern delimiters to the pattern you are using<br />3. Add "i" after the pattern delimiter to make it case insensitive<br />4. Now make it preg_match($regex, $url)Imahttps://www.blogger.com/profile/15959917170400080415noreply@blogger.comtag:blogger.com,1999:blog-7705858543089750008.post-81126513910993875852015-10-12T21:45:55.222-07:002015-10-12T21:45:55.222-07:00If I have a function like this: eregi($regex, $url...If I have a function like this: eregi($regex, $url). How do I convert it to preg_match?Sasahttps://www.blogger.com/profile/05983654645204854993noreply@blogger.com