🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #153512

Re: regex

#153512
From: blackmoon
Date: Wed, 18 Jul 2012 08:23
19 lines
1417 bytes
W dniu 2012-07-18 09:09, blackmoon pisze:
> Przepraszam, ponad moje siły...
> 
> w jaki sposób mogę wydobyć numer oraz link do pliku z takiej frazy?:
> 
> <td>5909990877201</td><td><img src="iconUP.png" name="s3214"
> onclick="window.open('/files/plik1.pdf')"
> 
> <td>[0-9]*<\/td> Wycina mi numer 5909999...
> 
> window\.open\(\'[^"]*\.pdf wycina mi PDF
> 
> nie potrafię połączyć obu...
> 


coś takiego stworzyłem...
(?:<td>)([0-9]*)(?:</td>)(?:<td><img
src[\w\W]*)(?:window\.open\(\')(\S*(\.pdf){1})
Technical Details
Message-ID: <ju5rq6$g9f$1@speranza.aioe.org>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!nf1.ipartners.pl!ipartners.pl!newsfeed.pionier.net.pl!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
References: <ju5neg$604$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!nf1.ipartners.pl!ipartners.pl!newsfeed.pionier.net.pl!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: blackmoon <ja@black.pl>
Newsgroups: pl.comp.lang.java
Subject: Re: regex
Date: Wed, 18 Jul 2012 10:23:35 +0200
Organization: Aioe.org NNTP Server
Lines: 21
Message-ID: <ju5rq6$g9f$1@speranza.aioe.org>
References: <ju5neg$604$1@speranza.aioe.org>
NNTP-Posting-Host: G9wDqZ65O+Xhr3/QvlZlqA.user.speranza.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.8.2
X-Antivirus: avast! (VPS 120717-1, 2012-07-17), Outbound message
X-Enigmail-Version: 1.4.3
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit