Regular Expressions in HomeSite

    Date: 01/18/07 (WebDesign)    Keywords: no keywords

    Does anyone have any experience with regular expressions using HomeSite?


    I'm trying to remove some line wraps and space between words in a bunch of sites I inherited. A simple search and replace won't do the trick, as whoever coded these sites used Dreamweaver and it churned some seriously crappy markup. Here's an example of what I'm trying to replace:

    This
    code
    is
    crap

    And this is how I want it to be:

    This code is

    Essentially I'm removing "crap" and the line wraps (never mind the fact the end result makes no sense...it's just an example). The thing is I need to do this across 55 sites.

    Does anyone know what the expression would be to achieve this result?

    Thanks a ton in advance.

    Source: http://community.livejournal.com/webdesign/1210517.html

« Word --> HTML || Critique »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home