Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    63
    Member #
    16740
    Hello,

    Take a look at the following example link code. It leads to the video and video thumbnail.

    <a href="http://.website.com " name="video_01" target="_blank"></a>
    <a href="http://.website.com " target="_blank"><img src="http http://.website.com/video_01.jpg"/> Title of Video_01</a>

    You’ll notice that the linked file has a title. Is there any way to select all the titles on a page so I can delete them all at once. Normally I have around 1000 links and I have to remove the video titles because it ruins the alignment of my design – all I want is thumbnails that expand with the page. It gets a little mundane when I have to remove 1000’s of titles 1 by 1.

    I use Dreamweaver CS3.

    Cheers

  2.  

  3. #2
    Member
    Join Date
    Jul 2008
    Posts
    32
    Member #
    17036
    do you want to remove

    <a href="http://.website.com " target="_blank"><img src="http http://.website.com/video_01.jpg"/> Title of Video_01</a>

    or

    Title of Video_01

  4. #3
    Member
    Join Date
    Jul 2008
    Posts
    32
    Member #
    17036
    the answer is to a regular expression in the search and replace

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Hit Ctrl+F (find and replace)

    Check the box that says "Use Regular Expressions".

    Put the following in the FIND box:
    Code:
    />[^\<]*\<\/a\>
    and put the following in the REPLACE box:
    Code:
    /></a>
    Then click "Replace All" and you're done.

  6. #5
    Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    63
    Member #
    16740
    Hi,

    Once again smoseley, thank you. You’ve saved me hours and hours of work.

    I had to alter the code to target="_blank">[^\<]*\<\/a\> but that was my fault for posting wrong. The title comes after the “target="_blank">”

    Cheers


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com