Professional Web Applications Themes

RegExp to remove all font tags - Macromedia Dreamweaver

Hi David, I should have explained my situation better :) This is a function that I need to run on the code on a dynamic page - when it gets served to the browser. So I can't use the dreamweaver command - unfortunately... I look forward to your regexp though - thats exactyl what I need!!! Cheers, Rob [url]http://robgt.com/[/url] Extensions: [url]http://robgt.com/products/index.asp[/url] Tutorials: [url]http://robgt.com/tutorials/index.asp[/url] Blog: [url]http://blog.robgt.com/[/url]...

  1. #1

    Default Re: RegExp to remove all font tags

    Hi David,
    I should have explained my situation better :)
    This is a function that I need to run on the code on a dynamic page - when
    it gets served to the browser.
    So I can't use the dreamweaver command - unfortunately...

    I look forward to your regexp though - thats exactyl what I need!!!

    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  2. #2

    Default Re: RegExp to remove all font tags

    I spotted the regexp book on your site:

    Mastering Regular Expressions, 2nd Edition

    Is it a good place to dive in?
    I really need to learn this stuff :)
    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  3. #3

    Default Re: RegExp to remove all font tags

    "RobGT" <roblighthouseuk.removeme.net> wrote in message
    news:bf3e7h$ivp$1forums.macromedia.com...
    > I spotted the regexp book on your site:
    >
    > Mastering Regular Expressions, 2nd Edition
    >
    > Is it a good place to dive in?
    > I really need to learn this stuff :)
    It's not for the faint of heart, but it's the best book on the subject;
    maybe the only one worth reading.
    Ben Forta is working on an entry level book that should be available later
    this year:

    Sams Teach Yourself Regular Expressions in 10 Minutes
    by Ben Forta
    Paperback - 192 pages (September 2003)
    Sams
    ISBN: 0672325667

    Massimo


    Massimo Foti \(on holiday\) Guest

  4. #4

    Default Re: RegExp to remove all font tags

    Hi Jules,
    Thats the place I started :)
    LOL

    I've decided to try and attach this from another angle.
    Is it possible to strip out all HTML tags except for a predefined list.
    i.e.
    I want to remove all html tags in a piece of text except the
    <strong>,<em>,<li>,<ul> and their relevant closing tags.
    I may want to add a few others to the 'exclude' list too.
    Can someone flex their regexp muscles and do that??
    There's the challenge :)
    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  5. #5

    Default Re: RegExp to remove all font tags

    Massimo Foti (on holiday) wrote:
    :: Ben Forta is working on an entry level book that should be available
    :: later this year:
    ::
    :: Sams Teach Yourself Regular Expressions in 10 Minutes
    :: by Ben Forta

    I've always been impressed with Ben's stuff, but RegEx in 10 minutes? Yes,
    it can be done, but it's the gotchas in RegEx that take ages to understand
    (and I'm nowhere near that myself). There's also an O'Reilly pocket guide
    out soon. I've got it on order, and am looking forward to it.

    --
    David Powers
    *******************************************
    No-nonsense reviews of computer books
    [url]http://japan-interface.co.uk/webdesign/books.html[/url]
    Save 10% on TopStyle CSS Editor
    *******************************************


    David Powers Guest

  6. #6

    Default Re: RegExp to remove all font tags

    "David Powers" <methisisntmyaddress.com> wrote in message
    news:bf4h9g$nis$1forums.macromedia.com...
    > Massimo Foti (on holiday) wrote:
    > :: Ben Forta is working on an entry level book that should be available
    > :: later this year:
    > ::
    > :: Sams Teach Yourself Regular Expressions in 10 Minutes
    > :: by Ben Forta
    >
    > I've always been impressed with Ben's stuff, but RegEx in 10 minutes? Yes,
    > it can be done, but it's the gotchas in RegEx that take ages to understand
    > (and I'm nowhere near that myself). There's also an O'Reilly pocket guide
    > out soon. I've got it on order, and am looking forward to it.
    Well, the series's title is pretty stupid, I think what's really count is
    the amount of pages (around 200), it's definitely not a "10 minutes" job :-)

    In the end it could be a good entry level volume, the O'Reilly book may
    easily be overkilling (and overwhelming) for the beginners. Let's wait and
    see

    Massimo


    Massimo Foti \(on holiday\) Guest

  7. #7

    Default Re: RegExp to remove all font tags

    Hi David,
    Changed again :)
    I have realised that all I actually need to do now is to remove <font> and
    <span> tags.
    I think I have that one sorted now!

    Many thanks for your help on this.
    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

Similar Threads

  1. Read True Type Font (ttf) Tags (font name...)
    By SYR in forum PHP Development
    Replies: 1
    Last Post: October 5th, 03:48 AM
  2. Gotta remove all of these tags!
    By Fractalice in forum Macromedia Contribute Connection Administrtion
    Replies: 2
    Last Post: October 5th, 12:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139