Regular Expression for Getting file urls.
-
hi all, i want to detect all the pdf files link which are downloadable on webpage, i need regular expression for that so that i can detect all the links. can any one here to help me in that issue, i shall be thankful to my friend. Regards, Neo
-
hi all, i want to detect all the pdf files link which are downloadable on webpage, i need regular expression for that so that i can detect all the links. can any one here to help me in that issue, i shall be thankful to my friend. Regards, Neo
Can't you just search for
[^\"\<\>\|\x0000\x0001\x0002\x0003\x0004\x0005\x0006\a\b\t\n\v\f\r\x000e\x000f\x0010\x0011\x0012\x0013\x0014\x0015\x0016\x0017\x0018\x0019\x001a\x001b\x001c\x001d\x001e\x001f\:\*\?\\\/]+\.pdf
Basically what I've done here is used Reflector to look for all characters which .NET believes are invalid filename characters (the bit inside the
[^...]``+
, the regex then looks for a group of one or more of these characters followed by a .pdf (\.pdf
). Have not tested it and do not accept resposability ;P -
hi all, i want to detect all the pdf files link which are downloadable on webpage, i need regular expression for that so that i can detect all the links. can any one here to help me in that issue, i shall be thankful to my friend. Regards, Neo
Thanks , But I am using Sockets and dont want to use Remoting. So what If I put my assembly in GAC and App A and App B access it from there ? would not it be shared among these 2 applications ? and If I put singlton patteren on Class X to create only object then shoudl't App A and App B get same object ? OR even if u put assembly in GAC , everny App creates its own instance of assembly ? Thanks