Using automator to edit text - find and replace

Hello. I have a huge database of tv repair tips. Unfortunately, when i started to accumulate the tips I put them in an html table like this:
<tr>
<td class="NoiseDataTD">TELEVISION </td>
<td class="NoiseDataTD">SONY </td>
<td class="NoiseDataTD">36XBR400 </td>
<td class="NoiseDataTD">DEAD - NO H.V. - INTERMITTENT START UP - 'D Board' NG. </td>
<td class="NoiseDataTD">IC6501, MCZ3001D 0r MCZ3001DB(8-759-670-30) - >>>HARD TO REPLACE!---tip:CUT PINS FROM TOP THEN PULL OUT SLOWLY </td>
</tr>
<tr>
<td class="NoiseDataTD">TELEVISION </td>
<td class="NoiseDataTD">SONY </td>
<td class="NoiseDataTD">63A </td>
<td class="NoiseDataTD">INSUFFICIENT HEIGHT </td>
<td class="NoiseDataTD">CHECK C522 REPLACE IF PARTIALLY OR COMPLETELY OPEN </td>
</tr>
<tr>
<td class="NoiseDataTD">TELEVISION </td>
<td class="NoiseDataTD">SONY </td>
<td class="NoiseDataTD">AA-2 </td>
<td class="NoiseDataTD">Int. loss of pix (HV) after 10 Min. Audio Normal.Pwr up again & OK for 10Min </td>
<td class="NoiseDataTD">H Protect Circuit. D521 (7.5 zener) ECG5015 </td>
</tr>
<tr>
<td class="NoiseDataTD">TELEVISION </td>
<td class="NoiseDataTD">SONY </td>
<td class="NoiseDataTD">AA-2D </td>
<td class="NoiseDataTD">VERTICAL HEIGHT PROBLEM </td>
<td class="NoiseDataTD">BAD YOKE: BAD YOKE WINDINGS MEASURED 6 OHMS, SHOULD BE CLOSE TO 9 OHMS </td>
</tr>
<tr>
<td class="NoiseDataTD">TELEVISION </td>
<td class="NoiseDataTD">SONY </td>
<td class="NoiseDataTD">AA-2W </td>
<td class="NoiseDataTD">Negative main pix, pip video ok. Customer heard pop then pix went dark. </td>
<td class="NoiseDataTD">IC355. CSA2131S </td>
</tr>
Now, I want to input the tips into a MySQL database with an insert statement like:
INSERT INTO `otips` (`id`, `brand`, `model`, `problem`, `solution`, `user`, `date`) VALUES (NULL, UCASE('SONY'), UCASE('KP-53XBR200'), UCASE('CONVERGENCE OFF'), UCASE('REPLACED CONVERGENCE IC''S STK392-020 AND PICO FUSE PS5007 3.15 AMP open'), '0', '0000-00-00');
I've been all over the help files and different websites with tutorials and I cannot figure out how to do this using automator. Could anyone tell me if this can be done with automator and perhaps point me in the right direction.
Thanks,
daniel
IMac Intel Core Duo   Mac OS X (10.4.8)  

Are you familliar with regular expressions? If you are, then you can create a shell script and incorporate it into your workflow. Or you could use bbedit or textwrangler from barebones.com to search and replace in multiple files.

Similar Messages

  • How to edit the find-and-replace dialog in Dreamweaver 8

    For over 13 years I have been a happy user of Macromedia Dreamweaver 8. And I still see no reason to use any other program for editting PHP.
    However, 1 thing has been bugging me for years. In the find-and-replace dialog there is a select "Find in". The options are in a dropdown.
    I want this select to be a multiselector (not in functionality, but just so I don't need to click to get the dropdown, but just one click to select).
    I read in the help at 'Customizing the appearance of dialog boxes' at point 4
    On your disk, find the appropriate HTM file in the Configuration/Objects, Configuration/ Commands, or Configuration/Behaviors folder.
    I've been searching but can not find the code for that dialog, althou it should be easy. Also did a search for that 'save' image, because once I find that, I can find this form, but its not in the macromedia folder.
    how to edit the find-and-replace dialog in Dreamweaver 8?

    It's looks less like an image and more like a form drop list to me.
    Yes its a dropdown list. But to find the code for that select I tried to find the htm file that code is on by searching for the save-image which is also on that page (next to the yellow folder). I did a search on all folders in c:/programfiles/macromedia and that image is not in there. If I could find the image name, I could search the code for that and should find that htm (or javascript) which is outputting it, then the select must be near to that.
    I also searched the code for the various texts on the page and got many hits, but not from the dialog page. I can't search dll files, so maybe thats where that code is in.

  • Use gvim to edit text areas and get it to use javascript.vim syntax file

    I have had a lot of trouble with javascript and editting files via apex's "javascript" sections in the page.
    The font in firefox did not distinguish various braces well enough for me. I kept accidentally mixing curly braces and parens... And I would now and then put the plsql concatenate operator || instead of the javascript +. Bleah! There are SO many ways to completely break javascript. And the whole javascript herd goes down when just one little function anywhere in there has an errant brace or quote. So I started resenting not using my customary text editor gvim. I have to have this stuff colorized and have showmatch turned on!
    So anyway I found that you can edit textareas with gvim, I don't know if this is commonly known or not so
    I thought I'd mention it. Or you can use whatever editor you want.
    I only tried this on windows but theoretically it works on other operating systems modulo you
    adjusting the shell details appropriately.
    First of all install the"It's all text!' firefox extension and restart firefox.
    then create a batch file something like this:
    (NB: don't call a batch file the same name as an executable. That can cause pesky loops :-)
    gvimrun.bat:
    c:\vim\vim73\gvim.exe %1 -c "set filetype=javascript"
    Note the pathname to gvim.exe needs to be customized. Note the parameter for passing the first argument along. (%1) The set filetype is telling it effectively to use the c:\vim\vim73\syntax\javascript.vim file.
    so then when you bring up your page in apex , when you put the mouse cursor right below the
    down arrow of the vertical scrollbar on the rhs of the textarea, you should see a little blue button
    that says "edit". Then right click and choose preferences. Direct it to your batch file.
    And if all is well it will work and invoke gvim with syntax coloring. Which makes it just a tiny bit less likely to really flub it.
    Now if anyone else wants to pick up the baton and figure out how to get more than one syntax
    in effect such as javascript and jquery? I did find a jquery.vim file out there. ...
    Now that we know how to do this if someone knows some really super great javascript /jquery
    editor that might be way better than gvim I would definitely consider that! Javascript is easy to screw up
    Edited by: lake on Jan 2, 2011 11:34 AM

    Hi Mathan. Here is something i have trying to do. This vi does not write it correct... and have I done something wrongly or "stupidly" in code
    Problems:
    -Second row is inroccet
    -If i know that device returns array where is 10 elements. Can I trust that and just return 10 elements from array and changed it to string?
    -Can I trust queue in this way?
    I think hardest in labview coding is that you dont know what kind component you should use and what is the right way to use them.
    Attachments:
    array to file.vi ‏21 KB

  • Folder action to find and replace text and change line feeds

    I want to use a folder action to find and replace text and change Mac carriage returns to DOS line feeds inside text files.
    The text to be replaced is: "/Users/wim/Music/iTunes/iTunes Music/Music" (without the quotes)
    This text has to be removed (i.e. replaced by an empty string)
    The text occurs many times within each file.
    The files are playlists exported from iTunes in the M3U format (which are text files). They contain Mac carriage returns. These need to be changed to DOS line feeds.
    I have found the following two perl commands to achieve this:
    To find and replace text: perl -pi -w -e 's/THIS/THAT/g;' *.txt
    To change carriage returns to line feeds: perl -i -pe 's/\015/\015\012/g' mac-file
    I know that it's possible to make a folder action with Automator that executes a shell script.
    What I want to do is drop the exported playlists in M3U format in a folder so that the folder action will remove the right text and change the carriage returns.
    My questions are:
    Is it possible to make a folder action that executes command line commands instead of shell scripts?
    What is the correct syntax for the two commands when used in a folder action shell script? Especially, how do I escape the slashes (/) in the string to be removed?
    Thanks for your help

    Ok, I've include an applescript to run a shell command. The applesript command quoted form makes a string that will end up as a single string on the bash command line.  Depending on what you want to do, you may need multiple string on the bash command lines.  I've included some information on folder actions.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set desktopPath to (path to desktop) as string
        log "desktopPath = " & desktopPath
        set unixDesktopPath to POSIX path of desktopPath
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    How to set up a folder action.
    1) right click on folder. click on Enable folder actions
    2) Place script in
    /Library/Scripts/Folder Actions Scripts
    3) right click on folder. click on attach folder action
    pick your script.
    Create a new folder on the desktop & try.
    You can put multiple folder actions on a folder. There are other ways of doing this.
    Here is my test script:
    on adding folder items to this_folder after receiving dropped_items
        repeat with dropped_item_ref in dropped_items
           display dialog "dropped files is " & dropped_item_ref & " on folder " & this_folder
        end repeat
    end adding folder items to
    How to  make the text into an AppleScript program.
    Start the AppleScript Editor
    /Applications/AppleScript/Script Editor.app
    In Snow Leopard it's at: /Applications/Utilities/AppleScript Editor
    Copy the script text to the Applescript editor.
    Note: The ¬ is typed as option+return.  ption+return is the Applescript line continuation characters.
    You may need to retype these characters.
    Save the text to a file as an script and do not check any of the boxes below.

  • Find and Replace simple action crashes Illustrator CC

    I am now trying Creative Cloud and I came with this bug. When I use a simple action to find and replace a text string in my file it will crash the Illustrator.
    My actions is pretty simple:
    Find > "aa" (I do have to check all the options to work)
    Find and Replace > "aa" to "2014.01.29"
    This action works well if I use it once by the Edit menu, but if I close the Illustrator and reopen, it'll not work again and will crash the software.
    Everyday I do update my action to actual date, so the action will work normally but sometimes I do have to close the app and I have to make the action again and again everytime.
    This was a problem already in CS5, last version that I used.
    I'm using Windows 8.

    Msot likely this isthe problem of the action playing back to fast.
    Actions Flyout >> playback options > set to altast 1 second
    You will need to change this setting each time you resart illustrator

  • How can I multi-find and replace relative paths to external topics?

    I am using RH7 and publishing to a company server share. External topics are saved on the same server share and linked on my local drive to create a relative link. How can I do a multi-find and replace on the relative links to change the path to the external docs? The paths do not show up in the Topics List because they are relative, not absolute. Although changing all of the many paths manually would be job security, I would like an easier fix. Thanks for any help.

    Hello again
    Likely your best bet at this point is to use a good Multi-File Find and Replace utility.
    While RoboHelp has one included, it often fails. So we typically recommend something like FAR (Find And Replace) or BKReplace.
    Click here to visit the FAR site
    Click here to visit the page for BKReplace
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • [Forum FAQ] How to find and replace text strings in the shapes in Excel using Windows PowerShell

    Windows PowerShell is a powerful command tool and we can use it for management and operations. In this article we introduce the detailed steps to use Windows PowerShell to find and replace test string in the
    shapes in Excel Object.
    Since the Excel.Application
    is available for representing the entire Microsoft Excel application, we can invoke the relevant Properties and Methods to help us to
    interact with Excel document.
    The figure below is an excel file:
    Figure 1.
    You can use the PowerShell script below to list the text in the shapes and replace the text string to “text”:
    $text = “text1”,”text2”,”text3”,”text3”
    $Excel 
    = New-Object -ComObject Excel.Application
    $Excel.visible = $true
    $Workbook 
    = $Excel.workbooks.open("d:\shape.xlsx")      
    #Open the excel file
    $Worksheet 
    = $Workbook.Worksheets.Item("shapes")       
    #Open the worksheet named "shapes"
    $shape = $Worksheet.Shapes      
    # Get all the shapes
    $i=0      
    # This number is used to replace the text in sequence as the variable “$text”
    Foreach ($sh in $shape){
    $sh.TextFrame.Characters().text  
    # Get the textbox in the shape
    $sh.TextFrame.Characters().text = 
    $text[$i++]       
    #Change the value of the textbox in the shape one by one
    $WorkBook.Save()              
    #Save workbook in excel
    $WorkBook.Close()             
    #Close workbook in excel
    [void]$excel.quit()           
    #Quit Excel
    Before invoking the methods and properties, we can use the cmdlet “Get-Member” to list the available methods.
    Besides, we can also find the documents about these methods and properties in MSDN:
    Workbook.Worksheets Property (Excel):
    http://msdn.microsoft.com/en-us/library/office/ff835542(v=office.15).aspx
    Worksheet.Shapes Property:
    http://msdn.microsoft.com/en-us/library/office/ff821817(v=office.15).aspx
    Shape.TextFrame Property:
    http://msdn.microsoft.com/en-us/library/office/ff839162(v=office.15).aspx
    TextFrame.Characters Method (Excel):
    http://msdn.microsoft.com/en-us/library/office/ff195027(v=office.15).aspx
    Characters.Text Property (Excel):
    http://msdn.microsoft.com/en-us/library/office/ff838596(v=office.15).aspx
    After running the script above, we can see the changes in the figure below:
    Figure 2.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thank you for the information, but does this thread really need to be stuck to the top of the forum?
    If there must be a sticky, I'd rather see a link to a page on the wiki that has links to all of these ForumFAQ posts.
    EDIT: I see this is no longer stuck to the top of the forum, thank you.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How to find and replace text in Excel with Automator

    I am new to Automator. And I would like some help how I can create a service that will allow me to find and replace certain text in Excel. I noticed that there is an action to do this for Word documents, but not for Excel document.
    Any suggestions how I can do this?
    Thanks so much for your help.

    Easiest way to do it is the following:
    - Open the PDF file in Acrobat.
    - Go to Tools - Forms - More Form Options - Export Data.
    - Save the form data as an XML file somewhere on your system.
    - Open XML the file in a plain-text editor (I recommend Notepad++).
    - Let's say you want to replace all the years in the dates from "2013" to "2014". Do a global Search&Replace of "2013-" to "2014-" (I added the dash just to make sure that only date fields are edited).
    - Save the XML file (maybe under a new name).
    - Go back to the PDF file, and now go to Tools - Forms - More Form Options - Import Data.
    - Select the edited XML file and import it.
    - Done!

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • Batch Edit Multiple HTML files | Find and Replace

    Hi,
    I would like to use Automator to automate (I know that sounds redundant) the following process.
    1. Take a group of html files
    2. Open each file so it can find and replace the script of any image folders
    Example:
    Change: img src="home_files/photo.jpg" to img src="images/photo.jpg"
    3. Save & Close each file
    I assume this this would have to be done in either AppleScript or Cocoa.
    Any help would be greatly appreciated.
    Thanks in advance.

    you most definitely don't need Cocoa for something like that. if all you need is a straightforward search and replace in a bunch of html files you can easily do this with a shell script. If you need some more involved search and replace you have to explain what it is exactly that you want.
    to automate direct search and replace you can do something along the following lines in automator
    1. get selected finder items (this will select your html files)
    2. run shell script action with input passed as arguments
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    for f in "$@"
    do
    fl=`echo "$f"`
    sed 's%home_files/photo.jpg%images/photo.jpg%g' $f > /users/$USER/.tmp.txt
    cat /users/$USER/.tmp.txt > "$fl"
    done
    rm /users/$USER/.tmp.txt</pre>

  • Find and Replace Font Colors in Multiple Text Boxes

    Hello,
    I have Illustrator version 15
    I made many text boxes with multiple colors, red and black on each letter. I was wondering if there is a find and replace tool for multiple text boxes. I want to change the reds to black and the blacks to light grey. I tried clicking on change swatch color but it only worked for the letter I had selected, even with the global option selected. I then when to select -> Same -> Color Stroke but it just selected each text box on the page....Is there anyway to do this?
    Jordan

    Not exactly a find and replace but you can do it.
    Select the text frames yu want to change the colors using the shift key to click select the frames.
    Then go to Edit>Edit Color>Recolor Art
    You wll see a dialog with red and black bars along side two shorter bars click the shorter bars to select a New Color a color picker will appear you can use the swatches or the color mixer.
    There is a live preview /so you will see the change in case you want to pick a different gray, of course you can always go back to the recolor art dialog.
    I am afraid you manually have to select text frames with multiple colors in order to accomplish what you want but the method above I believe is the only want to change the colors.
    This video shows how the dialog works but pretend the one frame I did not select is another color.
    http://www.wadezimmerman.com/videos/RecolorText.mov

  • Help with removing a variable number using "find and replace"

    Hey, I have to remove a variable number from a large number of documents.
    How would I do this using "find and replace"
    <text><![CDATA[Coloured 250]]></text>
    250 is an example of the variable number that I will need to remove so it looks like this:
    <text><![CDATA[Coloured]]></text>
    Note: the text "coloured" is subject to change also.
    Thanks

    That's a possibilitly I'll explore.  Thanks for the alternate perspective!
    (5 minutes later)
    Oh well, it was a good thought.
    Unfortunately each line of raw original text may contain from 1 to 4 lines of final text.  In other words there is no consistency in the number of backslashes (hard returns) in each line of original text, and thus, when backslashes are converted to commas, no consistency in the number of data elements in each data set. 
    Sadly PS variables will not handle finding a source text line that does not have data for 4 variables.  So I either have to go back and add enough commas on each short line to make four individual data elements for each data set... or I simply deal with the hard returns within Photoshop.
    I think I've reached the limit of automation on this process.

  • How do I find and replace text in PHP files?

    How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name?
    For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message board'...
    If I used the 'inside tag' search with " as the tag, then if "" contained a variable called 'forum' it would also be changed and therefore corrupt the code....
    Is there a simple way around this?
    Thanks!
    I'm using CS3 on Windows Vista.

    It looks like you're trying to find and replace source code, so you may be able to look at the various places that are looked at when finding and uncheck the ones that don't apply.
    But, if it's all source code then that won't help.  One thing that may work is to expand the search option - for example if the work "forum" that you're wanting to change it preceded by another word, or character or something that sets it apart, then do you find on that. You can expand that search phrase as far out in either direction that you need to to make it different, if of course that is practical in your situation.
    The only other way I can think of is to somehow create an exception rule, but I'm not sure if that's possible or how to do it.

  • Using applescript for Find and Replace All in Pages 2.0

    i saw that Pages 2.0 is scriptable
    i try to create a script for merge use to find and replace all occurence of a certain string using a script but Pages doesn't seems to respond to "Find" even using "System Events"
    how can i do to use this function with a script
    Thanx for any help
    S.B.
    ibook G3   Mac OS X (10.4.6)  

    OK, here's another example. This one gets the text as a string and uses the offset property to find "[", presuming it to be a merge delimiter. (Pages' text doesn't support "offset of").
    One failing of this scheme is that the offsets are incorrect if you have inline objects (pictures, shapes, tables, etc.). While it is probably possible to compensate for them, that's a trickier proposition.
    <PRE>-- Example merge replacements:
    property mergeText : {"[name]", "John Smith", "[address]", "1234 Anystreet"}
    on lookup(mergeWord)
    set theCount to count of mergeText
    repeat with x from 1 to theCount by 2
    if item x of mergeText = mergeWord then
    return item (x + 1) of mergeText
    end if
    end repeat
    -- If merge field is not found, delete it (replace it with the empty string)
    return ""
    end lookup
    tell application "Pages"
    repeat
    tell body text of document 1
    -- Get text as a string so that "offset of" can be used.
    set allText to it as string
    set startOffset to offset of "[" in allText
    if (startOffset = 0) then
    exit repeat
    end if
    set endOffset to offset of "]" in allText
    select (text from character startOffset to character endOffset)
    end tell
    set mergeWord to contents of selection
    tell me to lookup(mergeWord)
    set replacement to result
    set selection to replacement
    if (replacement is "") then
    -- Get rid of extra whitespace (space or return)
    -- Do it in a "try" block to handle edge cases at start or end of text.
    try
    set theSel to (get selection)
    set ch1 to character before theSel
    set ch2 to character after theSel
    if ((ch1 is " " or ch1 is return) and (ch2 is " " or ch2 is return)) then
    select character after theSel
    delete selection
    end if
    end try
    end if
    end repeat
    end tell</PRE>
    Titanium PowerBook   Mac OS X (10.4.6)  

  • How to use Microsoft Word's Find and Replace with HTML tags?

    Hello to all!
    I'm trying to figure out how to use the find and replace function in Word to replace html tags. I'd like to be able to change something like this:
    <span class="B01-K-ITAL">random text</span>
    To something like this:
    <em>random text</em>
    I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly.
    Anyone able to lend a hand?

    Here is my latest regular expression with Perl.   I think it matches the spirit of the request in the original post.
    Note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.
    perl -0660pe 's^<[sS][pP][aA][nN]\s+class="B01-K-ITAL"\s*>(.*?)</[sS][pP][aA][nN]>^<em>$1</em>^gs' i.html >|o.html
    input text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <span class="B01-K-ITAL">#1 one line</span> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <span class="B01-K-ITAL">#2 don't be greedy</span> <span class="B01-K-ITAL">$3 multiline text</span> <span class="B01-K-ITAL">#4 multiline tag. I believe html allow a carriage return in white space of tags</span> <span class="B01-K-ITAL">#5 split after the class tag. optional white space</span> <sPan class="B01-K-ITAL">#6 mixed case tag</Span> <p>no text #7</p><span class="B01-K-ITAL"></span> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>
    output text
     <html> <head>...</head> <body>I'd like to be able to change something like this: <em>#1 one line</em> I want to replace the open and close tags without changing or interfering with the text between the tags. I'm pretty sure I should use wildcards, but I can't figure out how to use them properly. <p>note, this isn't as easy as you think.  You need to code up the complete set of html rules in you implementation. You need to allow for a certain amount of mal-formed html.</p> <em>#2 don't be greedy</em> <em>$3 multiline text</em> <em>#4 multiline tag. I believe html allow a carriage return in white space of tags</em> <em>#5 split after the class tag. optional white space</em> <em>#6 mixed case tag</em> <p>no text #7</p><em></em> <!-- Apparently, this is valid     http://www.positioniseverything.net/articles/cc-plus.html --> <!--[if IE]> <div id="IEroot"> <![endif]--> <p id="IE">This browser is IE.</p> <p id="notIE">This browser is not IE.</p><!--[if IE]> </div> <![endif]--></body> </html>

Maybe you are looking for

  • Which is the best 5 M.P nokia phone ?

    i wanna know about the best 5 m.p nokia phone in terms of photo shoot.....

  • Speedgrade won't export a file, and hangs.

    Hi, I am just working on my first project in Speedgrade (a music video), which I edited in Premiere Pro and then sent to SpeedGrade. I can't play back in realtime, so I thought to export a low-res preview, however the app claims 100% rendered, though

  • Discoverer Reports on excel

    Hi can some one tell me how to run discoverer reports from excel we are using discoverer 10g Regards

  • Udev[testing] breaks nvidia driver

    When udev-118-2 and initscripts-2008.02-1 were both installed from the testing repro it caused the nvidia driver [nvidia-169.09-2] to continually fail to load when starting Xorg, with kernel26 2.6.24.2-1.  There was no problem using the xf86-video-nv

  • Email tones on E72 - anyway to have individual ale...

    Hi, Newbie here, just received my E72 as a company phone and am setting everything up. I have fiddled around and pretty much got everything working (push email etc), but I am really missing the option to have different tones for my personal and work