How to cover spacebar?

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
<DIV id=today-topic><A class=t3 href="http://www.abovetopsecret.com/forum/thread460263/pg1"><IMG align=left src="http://files.abovetopsecret.com/images/locked.png" width=17 height=20> A Mason about to expose ALL the secrets</A><BR><SPAN class=postedtoday>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #b0ff60"><B>Appak</B></SPAN> started this topic <SPAN style="COLOR: #a0ff40">on May 02, 2009</SPAN></SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=forumsm>Pages: <A class=forumsm href="http://www.abovetopsecret.com/forum/thread460263/pg1">1</A> <A class=forumsm href="http://www.abovetopsecret.com/forum/thread460263/pg2">2</A> <A class=forumsm href="http://www.abovetopsecret.com/forum/thread460263/pg3">3</A> .. <A class=forumsm href="http://www.abovetopsecret.com/forum/thread460263/pg15">15 </A></SPAN></DIV>
<DIV id=today-flags class=postedtoday><B>286</B></DIV>
<DIV id=today-flags class=postedtoday><B>107</B></DIV>
<DIV id=today-last class=forum><A class=forum href="http://www.abovetopsecret.com/forum/thread460263/pglastpost">on May 12, 2010 by<BR><B>Mirthful Me</B></A>&nbsp;<A href="http://www.abovetopsecret.com/forum/thread460263/pglastpost" target=_new><IMG border=0 src="http://files.abovetopsecret.com/images/newwin.gif" width=9 height=10></A></DIV></DIV>
<DIV id=topline></DIV>
<DIV style="PADDING-BOTTOM: 5px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; PADDING-TOP: 5px" id=today1>
<DIV id=today-topic><A class=t3 href="http://www.abovetopsecret.com/forum/thread685282/pg1">The esoteric is still exoteric!</A><BR><SPAN class=postedtoday>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #b0ff60"><B>Rhebefree</B></SPAN> started this topic <SPAN style="COLOR: #a0ff40">on Apr 05, 2011</SPAN>
with

Код:
(?<=\"\>).*(?=\<\/A\>\<BR\>\<SPAN class\=)
gives

Код:
----------------------------------- match # 0 -----------------------------------
<IMG align=left src="http://files.abovetopsecret.com/images/locked.png" width=17 height=20> A Mason about to expose ALL the secrets
----------------------------------- match # 1 -----------------------------------
The esoteric is still exoteric!
Tried with .*? in the middle but no luck either.

How to cover the spacebar thats the difference between the two, between the > and the first letter. And how to cover both, does regex support spintax?
 

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
lol nvm i just found out i'm learning less about regex by the week, in a month i'll be neanderthal regex...

apparently spintax might work for this. It's the only solution I can find without it going nuts and matching all sorts of stuff.

I have discovered that by the third spin regex starts acting all weird on me, though. I'm asking at the regexadvice forum, but its some weird shit

(?<=\<A title\=\"|png\"\>\<\/DIV\>\<A title\=\"|png\"\>\<\/DIV\>\<A title\=).*(?=\" href\=\"\/)

gives matches with the apostrophes, not both the ones with and without the apostrophes, which is what I'm looking for, as if the second and third spin were conflicting with each other.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)