Click here to Skip to main content
15,900,704 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: How to Convert Video to FLV in PHP Pin
fly90412-Aug-09 0:05
fly90412-Aug-09 0:05 
GeneralRe: How to Convert Video to FLV in PHP Pin
blackpool2713-Aug-09 17:16
blackpool2713-Aug-09 17:16 
AnswerRe: How to Convert Video to FLV in PHP Pin
Marc Firth12-Aug-09 22:37
Marc Firth12-Aug-09 22:37 
AnswerRe: How to Convert Video to FLV in PHP Pin
enhzflep13-Aug-09 20:15
enhzflep13-Aug-09 20:15 
Questionarray? Pin
benjamin yap11-Aug-09 15:32
benjamin yap11-Aug-09 15:32 
AnswerRe: array? Pin
Marc Firth12-Aug-09 22:44
Marc Firth12-Aug-09 22:44 
AnswerRe: array? Pin
AndreasJ819-Aug-09 6:31
AndreasJ819-Aug-09 6:31 
QuestionWhy the regex doesn't catch the "Extra" group? Pin
senglory11-Aug-09 12:41
senglory11-Aug-09 12:41 
the regex:
<br />
# Region<br />
<tr><br />
\s*<td\s+class="grey11">Region:</td>\s*<br />
<td\s+class="b11\s+b">(?<Region>.+?(?=</td>))</td><br />
\s*<br />
</tr><br />
\s*<br />
<br />
</table><br />
\s*<br />
<br />
#Optional AD<br />
(<br />
<div\s+class="wid342\s+fl\s+padtop15"><br />
\s*<br />
<div\s+class="linkicon\s+listicon\s+lh16"><br />
\s*<br />
<a(?:[^>]*?)><br />
(?:.+?)</a>\s*</div>\s*</div><br />
){0,1}<br />
<br />
</div><br />
\s*<br />
<br />
(<br />
# Amenities<br />
<div\s+class="wid342\s+fl\s+mtop10(?:[^>]*?)><br />
\s*<br />
<div\s+class="pad10"><br />
(?:.+?)<br />
<ul\s+class="chkbox"><br />
(?<Amenities>.+?)<br />
</ul><br />
\s*<br />
</div><br />
){0,1}<br />
<br />
<br />
<br />
(?:.+?)<br />
<br />
#Extra<br />
(<br />
<div\s+class="b10\s+lh16\s+vpad10"><br />
\s*(?<Extra>.+?)\s*<br />
</div><br />
){0,1}<br />



the text:


<tr>
<td class="grey11">Drive</td>
<td class="b11">Front</td>
</tr>
<tr>
<td class="grey11">Transm</td>
<td class="b11 b">Mech</td>
</tr>
<tr>
<td class="grey11">Intr</td>
<td class="b11">Leather</td>
</tr>

<tr>
<td class="grey11">COND/td>
<td class="b11">USED</td>
</tr>
<tr>
<td class="grey11">Region/td>
<td class="b11 b">QQQQQQQQQQQQQ</td>
</tr>
</table>
</div>
<div class="wid342 fl mtop10" style="background:#F5F5F5">
<div class="pad10">
<h4 class="darkred">What's inside</h4>
<ul class="chkbox">
<li class="par">
<ul>
<li>ABS</li>
<li>Acs</li>
<li>HUD</li>
<li>Immo</li>
</li>
<li class="par">
<ul>
<li>Chairs</li>
<li>Alarm</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="wid342 fl oh">
<p class="vmargin10">
<h4>Extra info</h4>
<div class="b10 lh16 vpad10">
Good condition. Assembled in ---------
</div> 



Why doesn't it return me "Good condition. Assembled in ---------" for "Extra" group? This group is
actually optional; that's why I marked it with {0,1}. And if I remove {0,1} the regex returns me it's expected value but only in this particular case.

What's wrong to my regex?
AnswerRe: Why the regex doesn't catch the "Extra" group? Pin
jschell9-Sep-09 14:10
jschell9-Sep-09 14:10 
QuestionStock Chart Pin
udch11-Aug-09 8:52
udch11-Aug-09 8:52 
AnswerRe: Stock Chart Pin
Marc Firth12-Aug-09 22:48
Marc Firth12-Aug-09 22:48 
GeneralRe: Stock Chart Pin
blahorst19-Aug-09 1:18
blahorst19-Aug-09 1:18 
GeneralRe: Stock Chart Pin
Marc Firth19-Aug-09 5:52
Marc Firth19-Aug-09 5:52 
GeneralRe: Stock Chart Pin
udch20-Aug-09 1:49
udch20-Aug-09 1:49 
GeneralRe: Stock Chart Pin
udch20-Aug-09 2:24
udch20-Aug-09 2:24 
GeneralRe: Stock Chart Pin
Marc Firth20-Aug-09 2:27
Marc Firth20-Aug-09 2:27 
GeneralRe: Stock Chart Pin
Marc Firth20-Aug-09 2:28
Marc Firth20-Aug-09 2:28 
GeneralRe: Stock Chart Pin
udch20-Aug-09 2:34
udch20-Aug-09 2:34 
GeneralRe: Stock Chart Pin
Marc Firth20-Aug-09 2:30
Marc Firth20-Aug-09 2:30 
GeneralRe: Stock Chart Pin
udch20-Aug-09 2:38
udch20-Aug-09 2:38 
GeneralRe: Stock Chart Pin
Marc Firth20-Aug-09 2:54
Marc Firth20-Aug-09 2:54 
QuestionHow to open ? Pin
udch11-Aug-09 8:36
udch11-Aug-09 8:36 
AnswerRe: How to open ? Pin
fly90411-Aug-09 10:17
fly90411-Aug-09 10:17 
Questiongui tool for mysql in linux Pin
Kiran Pinjala11-Aug-09 3:25
Kiran Pinjala11-Aug-09 3:25 
AnswerRe: gui tool for mysql in linux Pin
lemur11-Aug-09 5:11
lemur11-Aug-09 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.