|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42283 problem in regular expressions
Submitted: 2007-08-13 10:29 UTC Modified: 2007-11-18 01:38 UTC
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: funpersian989moji at yahoo dot com Assigned:
Status: Not a bug Package: *Regular Expressions
PHP Version: 4.4.7 OS: apache
Private report: No CVE-ID: None
 [2007-08-13 10:29 UTC] funpersian989moji at yahoo dot com
problem in regular expressions

Reproduce code:
i can't best speak english
i am sorry

i a problem in regular expressions
help me
my html code is:
<hr><b>Really example1</b> : <i><a href=></a></i><hr>
<UL><LI><a href="">Systems example0</a>
1<LI><a href="">Systems example1</a>
2<LI><a href="">Systems example2</a>
3<LI><a href="">Systems example3</a>
4<LI><a href="">Systems example4</a>
5<LI><a href="">Systems example5</a>
6<LI><a href="">Systems example6</a>
7<LI><a href="">Systems example7</a>
8<LI><a href="">Systems example8</a>
10<LI><a href="">Systems example9</a>
<LI>. . . . .<br>
</UL><hr><b>Really example2</b> : <i><a href=></a></i><hr>
<UL>1<LI><a href="">example2 example2</a>
2<LI><a href="">Systems example2</a>
3<LI><a href="">Systems example2</a>
my regular expressions code is:
i how regular expressions code display  result of line from 1-10 
plesae help me

me email

very thanks


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-15 14:02 UTC] felipensp at gmail dot com
This aren't a bug.

preg_match_all('/(?<!<ul>)<li><a href="([^"]+)">([^<]+)<\/a>/i', $str, $matches);

And array_slice() function can help you.
 [2007-11-18 01:38 UTC]
This isn't a bug.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 23:01:27 2024 UTC