ereg Questions

4

Solved

Since POSIX regular expressions (ereg) are deprecated since PHP 5.3.0, I'd like to know an easy way to convert the old expressions to PCRE (Perl Compatible Regular Expressions) (preg). Per example,...
Unwarranted asked 7/6, 2011 at 18:36

3

Solved

Possible Duplicate: How can I convert ereg expressions to preg in PHP? My contact form is othervise working but I keep getting the following error: Deprecated: Function ereg() is ...
Dominion asked 27/11, 2012 at 9:14

3

Solved

I had that test that worked fine : if (ereg("([0-9]{2})[-./]([0-9]{2})[-./]([0-9]{4})[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})", $dateToTest, $tab) == false) and as ereg is deprecated, I have re...
Kall asked 6/12, 2011 at 13:32

2

Solved

Possible Duplicate: Converting ereg expressions to preg <?php $searchtag = "google"; $link = "http://images.google.com/images?hl=de&q=$searchtag&btnG=Bilder-Suche...
Flatwise asked 16/11, 2011 at 22:25

6

Solved

I have written following PHP code: $input="menu=1&type=0&"; print $input."<hr>".ereg_replace('/&/', ':::', $input); After running above code, it gives following warning,...
Ritualist asked 28/6, 2010 at 13:41

4

Solved

I work on a large PHP application (>1 million lines, 10 yrs old) which makes extensive use of ereg and ereg_replace - currently 1,768 unique regular expressions in 516 classes. I'm very awar...
Receptor asked 3/5, 2011 at 14:47
1

© 2022 - 2024 — McMap. All rights reserved.