473,903 Members | 4,235 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anyone have the pattern to remove Brinkster ads?

URL: http://www3.brinskter.com/soa/soa_sa...valsignalandet

This URL produces a nice page with form material to produce
user-inputted band search information

Problem is that Brinkster interferes with the HTML resultset by
embedding their annoying ads all over the place.

How on earth do I remove them??

Here is the code that I used that I thought would work:

Expand|Select|Wrap|Line Numbers
  1. Dim brinksterAdRemoveRegexp
  2. set brinksterAdRemoveRegexp = new RegExp
  3. brinksterAdRemoveRegexp.Pattern = "<!-- BEGIN text generated by
  4. server\. PLEASE REMOVE -->.+<!-- END text generated by server\. PLEASE
  5. REMOVE -->"
  6. brinksterAdRemoveRegexp.Global = TRUE
  7.  
  8. bandOriginDropdown =
  9. brinksterAdRemoveRegexp.Replace(bandOriginDropdown, "")
  10. bandStyleTextField =
  11. brinksterAdRemoveRegexp.Replace(bandStyleTextField, "")
  12. bandDescriptiongTextField =
  13. brinksterAdRemoveRegexp.Replace(bandDescriptionTextField, "")
  14.  
Unfortunately it fails and I can't get it right. If nobody is able or
willing to give me the pattern, where is there a good RegExp building
tool out there, free, that I can obtain to do it for me? I can't
install The Regulator, requires .NET Framework, can't get it, I tried
all day, gave up.

Thanx
Phil

Jul 30 '05 #1
3 1724
>> How on earth do I remove them??
Wouldn't that violate the TOS you agreed to when you signed up for the
account?

Bob Lehmann

"Phil Powell" <ph************ **@gmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
URL: http://www3.brinskter.com/soa/soa_sa...valsignalandet

This URL produces a nice page with form material to produce
user-inputted band search information

Problem is that Brinkster interferes with the HTML resultset by
embedding their annoying ads all over the place.

How on earth do I remove them??

Here is the code that I used that I thought would work:

Expand|Select|Wrap|Line Numbers
  1.     Dim brinksterAdRemoveRegexp
  2.     set brinksterAdRemoveRegexp = new RegExp
  3.     brinksterAdRemoveRegexp.Pattern = "<!-- BEGIN text generated by
  4.  server\. PLEASE REMOVE -->.+<!-- END text generated by server\. PLEASE
  5.  REMOVE -->"
  6.     brinksterAdRemoveRegexp.Global = TRUE
  7.     bandOriginDropdown =
  8.  brinksterAdRemoveRegexp.Replace(bandOriginDropdown, "")
  9.     bandStyleTextField =
  10.  brinksterAdRemoveRegexp.Replace(bandStyleTextField, "")
  11.     bandDescriptiongTextField =
  12.  brinksterAdRemoveRegexp.Replace(bandDescriptionTextField, "")
  13.  

Unfortunately it fails and I can't get it right. If nobody is able or
willing to give me the pattern, where is there a good RegExp building
tool out there, free, that I can obtain to do it for me? I can't
install The Regulator, requires .NET Framework, can't get it, I tried
all day, gave up.

Thanx
Phil

Jul 31 '05 #2
Not necessarily, since the ads already appear, I just have no need to
have them appear multiple times on the same page since I'm doing
dynamic component insertions from the same server.

Phil

Aug 15 '05 #3
"Phil Powell" <ph************ **@gmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
URL: http://www3.brinskter.com/soa/soa_sa...valsignalandet

This URL produces a nice page with form material to produce
user-inputted band search information

Problem is that Brinkster interferes with the HTML resultset by
embedding their annoying ads all over the place.

How on earth do I remove them??

Here is the code that I used that I thought would work:

Expand|Select|Wrap|Line Numbers
  1.    Dim brinksterAdRemoveRegexp
  2.    set brinksterAdRemoveRegexp = new RegExp
  3.    brinksterAdRemoveRegexp.Pattern = "<!-- BEGIN text generated by
  4.  server\. PLEASE REMOVE -->.+<!-- END text generated by server\. PLEASE
  5.  REMOVE -->"
  6.    brinksterAdRemoveRegexp.Global = TRUE
  7.    bandOriginDropdown =
  8.  brinksterAdRemoveRegexp.Replace(bandOriginDropdown, "")
  9.    bandStyleTextField =
  10.  brinksterAdRemoveRegexp.Replace(bandStyleTextField, "")
  11.    bandDescriptiongTextField =
  12.  brinksterAdRemoveRegexp.Replace(bandDescriptionTextField, "")
  13.  

Unfortunately it fails and I can't get it right. If nobody is able or
willing to give me the pattern, where is there a good RegExp building
tool out there, free, that I can obtain to do it for me? I can't
install The Regulator, requires .NET Framework, can't get it, I tried
all day, gave up.

Thanx
Phil


Is there more than one (1) BEGIN/END comment set in the text you are
parsing? If so, you'll need to use non-greedy matching. Also, if there's a
possibility that there is no content between the BEGIN and END comments,
then you should use the "zero or more" quantifier. Here's what the revised
regular expression would look like:

<!-- BEGIN text generated by server\. PLEASE REMOVE -->.*?<!-- END text
generated by server\. PLEASE REMOVE -->

In addition, you may want to consider setting the IgnoreCase property for
the RegExp object to True.

In the future, if you could provide some more detailed information on how
something is "failing", it would facilitate the process of trying to resolve
your issues. Things like errors messages or expected output versus actual
output.

HTH-
Chris Hohmann
Aug 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
6987
by: gsv2com | last post by:
One of my weaknesses has always been pattern matching. Something I definitely need to study up on and maybe you guys can give me a pointer here. I'm looking to remove all of this code and just use pattern matching to determine if the proper amount of numeric characters has been met. Here is the function I've already done. Any help you can give in a pattern matching solution would be much appreciated and very educational.
0
7056
by: Andy Read | last post by:
Hello all, I have the requirement to produce source code that produces an object hierarchy. Example: Root | Folder 1
3
5399
by: kie | last post by:
url explaining what i' trying to do @ http://www.kieran.f2s.com/remove_all_rows_all_tables.htm hi, i want to create a function removing all rows from 3 tables. the tables were created using the 'createElement' function, and can remove rows one by one using a function attached to a button held within each dynamic '<tr>'.
4
1597
by: Jéjé | last post by:
Hi, I have a file which contain 1 pair of values by line like: Name1=Value1 = I nned to store these pair of values in a sortedlist. So the result expected for the 2 samples lines is: Key Value Name1 Value1
4
2890
by: FluffyCat | last post by:
New on November 29, 2005 for www.FluffyCat.com PHP 5 Design Pattern Examples - the Command Pattern. Since you all enjoyed the Visitor Pattern so much yesterday, today I have the Command Pattern for you. This one is pretty straight forward. In the Command Pattern an object encapsulates everything needed to execute a method in another object. http://www.fluffycat.com/SDCMSv2/PHP-Design-Patterns-Command/
0
1171
by: hardieca | last post by:
Hello, I'm creating a regex pattern that will pull out the attribute and value pairs from an HTML tag. What I have so far is: @"\s*(?<attribute>*)\s*=\s*?(?<value>*)" This is all well and good, except if an attribute's value is quoted, the tail quote mark is included when I reference the <value> group. I could remove the apostrophe and quote marks from the pattern, but I
34
11229
by: Steven Nagy | last post by:
So I was needing some extra power from my enums and implemented the typesafe enum pattern. And it got me to thinking... why should I EVER use standard enums? There's now a nice little code snippet that I wrote today that gives me an instant implementation of the pattern. I could easily just always use such an implementation instead of a standard enum, so I wanted to know what you experts all thought. Is there a case for standard enums?
12
2005
by: Adrian | last post by:
The code below was taken from an example. All the "noise" in the example was thrown out. This is supposedly according to the bridge pattern. What in the code (which lines) represent the bridge pattern (make this code to be according to the bridge pattern), and what is the advantage of employing the bridge pattern? It seems "l'art pour l'art" to me. Adrian
1
1739
by: halekio | last post by:
Hi all, Please bear with me as I've only started programming in C# 2 weeks ago and this is my first contact with OOP. I ran into a situation where I needed to catch an event in an object that had no connection or reference to the object that triggered it. It goes something like this: (not syntactically correct..it's just for the idea)
0
11283
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10875
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7206
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6093
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4727
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3324
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.