Jump to content

Regular Expression Help


chronister

Recommended Posts

Not sure if this should go explicitly in the regex section, but here goes. I am trying to wrap my brain around these things and I just cannot seem to do it. I am looking to essentially remove everything contained in between

<i></i>

tags as well as the tags themselves. An example of these code snippets are below.

 

example 1


<i>
Written by
<a href="/SearchPlotWriters?%7BN2XFYLS@aol.com%7D">{N2XFYLS@aol.com}</a>
</i>

example 2

<i>
Written by
<a href="/SearchPlotWriters?Scott%20Huntsman%20%7Bguru@movieguru.com%7D">Scott Huntsman {guru@movieguru.com}</a>
</i>

 

I found an awesome IMDB class, and I am modifying it to insert data into a database. I want to get rid of the Written by section of the plots

 

Any help would be appreciated. Regex syntax is mind-boggling to me right now.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.