How can I extract all URL's into a list from 'mm_report' file?

I've Googled this with no luck; I have a 'mm_report' in xml format. It contains a lot of text that also includes approx 800 URL links I need to extract these URLs into a separate list. I've tried using a regular expression: href=\"([^\"]+)  in 'Find and Replace' which successfully highlights the links but now need to know how to reverse this process so it deletes [strips] all surrounding text & only leaves me with a list of all URL's in this file.
Any advise, much appreciated.

Hi Hans,
here's an edited version to show just 3 links:
<?xml version="1.0" standalone="yes" ?>
<mm_report>
          <mm_reportname>          ResultsReport.xml</mm_reportname>
          <mm_reportdate>12/08/11 21:29:33</mm_reportdate>
          <mm_reportlocation>E:\\bond\</mm_reportlocation>
          <mm_reportitem>
                    <mm_file>www.mywebsite.com\1.html</mm_file>
                    <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/1.jpg',630,630)"><IMG...]]></mm_displaystr>
                    <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
          </mm_reportitem>
          <mm_reportitem>
                    <mm_file>www.mywebsite.com\2.html</mm_file>
                    <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/2.jpg',630,630)"><IMG...]]></mm_displaystr>
                    <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
          </mm_reportitem>
          <mm_reportitem>
                    <mm_file>www.mywebsite.com\3.html</mm_file>
                    <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/3.jpg',630,630)"><IMG...]]></mm_displaystr>
                    <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
          </mm_reportitem>
          <mm_reportitem>
                    <mm_file>www.mywebsite.com\4.html</mm_file>
                    <mm_displaystr><![CDATA[ <A HREF="javascript:openWindow('http://www.mywebsite.com/4.jpg',630,630)"><IMG...]]></mm_displaystr>
                    <mm_data mm_rangemin="23240" mm_rangemax="23342" mm_filename="E:\mywebsite.html" mm_replaced="false" mm_matchedtextdirty="false" />
          </mm_reportitem>
</mm_report>
I would like this to return just:
http://www.mywebsite.com/1.jpg
http://www.mywebsite.com/2.jpg
http://www.mywebsite.com/3.jpg
Thanks.

Similar Messages

  • How can I extract all attachments together in office365 email?

    How can I extract all attachments together in office365 email?

    There is no build-in feature in Outlook 2013. However, we can accomplish that via coding VBA.
    Here is a simple I may provide:
    http://stackoverflow.com/questions/15531093/outlook-vba-macro-to-save-attachments-to-a-folder-and-rename-them
    Programming/Code related questions should really be posed in one of the following forums:
    Outlook for Developers
    http://social.msdn.microsoft.com/Forums/en-US/outlookdev
    Microsoft Office Programming
    http://answers.microsoft.com/en-us/office/forum/customize?page=1&tab=all&tm=1361680524815
    Tony Chen
    TechNet Community Support

  • A few years ago I bought music from Itunes.  Recently I deactivated all computers in order to add a new computer.  Most of the music I purchased came through, but I am still missing about 30% of it.  How can I download all the music I have purchased from

    A few years ago I bought music from Itunes.  Recently I deactivated all computers in order to add a new computer.  Most of the music I purchased came through, but I am still missing about 30% of it.  How can I download all the music I have purchased from Itunes?

    Might have luck with that here >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Previous purchases may be unavailable if they have been refunded or are no longer on the iTunes Store.
    Make sure and use the same Apple ID that was used for the original purchases.

  • How can I delete all items on the "Done" list in Reminer-App? There are meanwhile hundreds of items (shopping, appoitments, ...) and I don't want to spend hours deleting them.

    How can I delete all items on the "Done" list in Reminer-App? There are meanwhile hundreds of items (shopping, appoitments, ...) and I don't want to spend hours deleting them.

    You can't remove the built-in root certificates, but you can remove their trust bits via the Edit button to prevent Firefox from using them as a trusted root certificate.
    Intermediate certificates that Firefox has stored when visiting websites that show as "Software Security Device" should never has trust bits set.
    Note that it is the responsibility of a server to send all required intermediate certificates to make it possible to build a certificate chain that ends with a built-in root certificate.

  • How can I download Raw format photographs into my iMac from my Sony A850 camera?

    How can I download Raw format photographs into my iMac from my Sony A850 camera?

    Looking at this article, it doesn't look like that camera model is supported by iPhoto. You may want to get in touch with Sony and see if they have any software that will allow you to import/view it.

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • HT2518 After using Migrate Assistant, I made several accounts for every attempt to migrate files from PC to Mac. How can I put all accounts together into one? How can I transfer the files from the other accounts to my primary account?

    Okay, so I did the entire Migrate Assistant process to transfer all my files and what not to my MacBook. Problem is that I did it on seperate occasions and now I have several accounts.
    How can I transfer my files from the other accounts to my primary account and delete the other accounts?

    Problem is that I did it on seperate occasions and now I have several accounts.
    If you had read carefully, Migration Assistant asks what you want to do in this event. That would have precluded the redundancy.
    Part of the fundamental design of OS X is to separate user accounts so that one user can't interfere with another. It's not possible to directly merge an account with another, but you can copy whatever you need to the Shared folder - it is in your Users folder.
    Log in to one account, prefereably a smaller one, and drag the files and folders into Shared. Log out, log into the account you want to be "primary" and drag the files from Shared into their appropriate locations. When you have copied everything you need delete the redundant account.
    Do this for each of them.
    Or, you can just run Migration Assistant again and follow the prompts that address the situation you described. It involves creating a secondary, temporary account from which you can administer the transfer. When it is complete you delete the temporary account(s).

  • How can I move all my contacts into a single email group from all the other group?

    I've got several email accounts, but my contacts are spread across them. Of course, when I access or search my contacts they do all get searched together, but I need to delete an account and this will result in me losing many contacts.
    So before I do this, I want to consolidate all my contacts into my main personal email group account. But short of doing them one by one, I can't find a way and I have several thousand contacts at risk of being lost.
    Can anyone advise me?

    Go to your Contacts on your Mac - if more than one pick the most accurate; delete any contacts you don't want. Select all the contacts, and from the File menu choose 'Export...'>'Export vCard'. Save the resultant file safely: it will be your 'master' list.
    Now delete all the contacts from whichever device has the most in it. Sync with iCloud. If necessary repeat with different Macs. The result should be that the deletions sync to iCloud and in the end you finish up with empty Contacts lists everywhere.
    Now you can import your saved file to one of your Macs. Make sure you import it under 'iCloud' not 'On My Mac'. Then it should propagate iCloud and any other devices. Keep the saved file at least until you are satisfied that all is in order.

  • How can I kill all Threads of the same class from within the run() method?

    Ok
    I have a class called Consumer that extends Thread
    I have several Consumer threans running... but, when a certain condition is true (within the run() method) in ANY of the threads, I want to kill ALL the threads of that object.
    is this possible?

    I know this is gonna be too demanding, but can someone please tell me why my Consumer's run() method never reaches the System.out.println( "ALL CONSUMING DONE") line
    Create a multi-threaded prime number calculator that is based on the producer-consumer model
    using semaphores. Your program should be able to check for prime numbers in a range specified
    by the user and with a variable number of threads. Example:
    $ java PrimeFind 3 5000 10000
    should use 1 producer and 2 consumers (3 threads in total, obviously the minimum is 2) to find all
    the prime numbers in the range [5000,10000].
    The producer should: use a buffer to store candidate numbers that have to be checked for
    primality.
    Consumers should: read from the buffer, check if a number is prime and update the status of the
    program accordingly (e.g. show the number on the screen, or save it to a file)
    import java.util.concurrent.Semaphore;
    import java.io.*;
    public class Assign1 {
    static int fromThisNumber;
    static int toThisNumber;
    static int numberOfThreads;
    static int buffer[];
    static Semaphore ready;          /*This semaphore is used by the Producer to signal
                                         an "OK" to the consumers*/
    static Semaphore critical;  /*This is a Mutex semaphore. It allows only 1 consumer
                                         to enter his critical section.
    static Semaphore counter;     /*This semaphore acts as a counter.
                                        Instead of having a global variable
                                         incremented each time, we just release()
                                         this semephore when we find a prime number
                                         Because remember that release() increments permits
    static Producer prod;
    static Consumer cons[];
    static int in=0;
    static int out=0;
    static PrintWriter outFile;
         public static void main (String args[]){
              try{
                   outFile=new PrintWriter(new FileWriter("primes.txt"));
                   }catch(Exception e){}
              numberOfThreads=Integer.parseInt(args[0]);
              fromThisNumber=Integer.parseInt(args[1]);
              toThisNumber=Integer.parseInt(args[2]);
              buffer=new int[Integer.parseInt(args[2])-Integer.parseInt(args[1])+1];
              ready=new Semaphore(0,false); /*We initialise it to 0 because we wait
                                                      for the Producer to produce atleast a
                                                      item. Suppose ready was 1 and if
                                                      Consumer ran first he would be in an
                                                      empty buffer */
              critical=new Semaphore (1,false);/*We initialise it to 1 because when
                                                         the first Consumer thread tries
                                                         to enter its critical section, it
                                                         should be allowed to;
                                                         Subsequent threads will have to
                                                         wait since only 1 thread can
                                                         access its critical section at a time*/
              counter=new Semaphore(0,false); // duh!
              cons=new Consumer[numberOfThreads-1]; /*numberOfThreads-1 because 1 thread
                                                                is taken by the Producer*/
              //Creating Producer object
              prod=new Producer();
              //Creating the Consumer object and start the thread.
              for(int i=0;i<cons.length;i++)
                        cons=new Consumer();
                        cons[i].start();
              prod.start();          
              //Printing to screen and file
    /*          for(int i=0;i<buffer.length;i++)
                   if(buffer[i]!=0)
                             System.out.println(buffer[i]);
                             outFile.println(buffer[i]);
              System.out.println("Total primes found between "+args[1]+" and "+toThisNumber+": "+counter.availablePermits()+"\n primes.txt written");
              outFile.println("Total primes found between "+args[1]+" and "+toThisNumber+": "+counter.availablePermits());
              outFile.close();*/                    
    static class Producer extends Thread {
         public void run(){try{
              while(in<buffer.length)     /*'in' should always be more than 'out'.Oherwise the consumer will try to access an empty index*/
                   {     System.out.println("producing");     
                        buffer[in]=fromThisNumber;
                        in++;
                        fromThisNumber++;
                        ready.release();
              catch (Exception e){e.printStackTrace();}
              System.out.println("ALL PRODUCING DONE");
    static class Consumer extends Thread {
         int tempout=0;
         public void run(){try{
              System.out.println("before while"+this.getId());
              while(tempout<=in)
                   System.out.println("before ready"+this.getId()+" "+ready.availablePermits()+" "+in);
                   ready.acquire();
                   System.out.println("before critical.acquire"+this.getId());
                   critical.acquire();
                   tempout=out;
                   out++;
                   critical.release();               
                   if(!isPrime(buffer[tempout]))
                        {System.out.println(buffer[tempout]+" by "+this.getId());buffer[tempout]=0;}
                   else {counter.release();System.out.println("prime added: "+buffer[tempout]+" by "+this.getId());}
                   critical.acquire();
                   tempout=out;
                   System.out.println("tempout:"+tempout+" of "+this.getId());
                   critical.release();
              System.out.println("ALL CONSUMING DONE"+this.getId());
         catch(Exception e){e.printStackTrace();}
         //Prime number-checking method     
         public boolean isPrime(int n){
              for(int i=2;i<=(n/2);i++)
                   if(n%i==0)
                        return false;
              return true;
    ======================
    import java.util.concurrent.Semaphore;
    import java.io.*;
    /* 3 questions to ask Barlas
    * Why error if I start the Consumer threads before Producer
    * Why does the counter semaphore always give a +1 result at the end
    * Is there a way I can verify that all the work is not being done by only 1 consumer thread? In other words, the workload is being shared properly
    * if I put ready.acquire() outside or inside the while loop, its not making any difference, why?
    * Strangely, its not making any difference if I playing with the release() and aquire() of the semaphores, WHY?!?!
    public class Assign1 {
    static int fromThisNumber;
    static int toThisNumber;
    static int numberOfThreads;
    static int buffer[];
    static Semaphore ready;          /*This semaphore is used by the Producer to signal
                                       an "OK" to the consumers*/
    static Semaphore critical; /*This is a Mutex semaphore. It allows only 1 consumer
                                       to enter his critical section.
    static Semaphore counter;     /*This semaphore acts as a counter.
                                  Instead of having a global variable
                                       incremented each time, we just release()
                                       this semephore when we find a prime number
                                       Because remember that release() increments permits
    static Producer prod;
    static Consumer cons[];
    static int in=0;
    static int out=0;
    static PrintWriter outFile;
         public static void main (String args[]){
              try{
                   outFile=new PrintWriter(new FileWriter("primes.txt"));
                   }catch(Exception e){}
              numberOfThreads=Integer.parseInt(args[0]);
              fromThisNumber=Integer.parseInt(args[1]);
              toThisNumber=Integer.parseInt(args[2]);
              buffer=new int[Integer.parseInt(args[2])-Integer.parseInt(args[1])+1];
              ready=new Semaphore(0,false); /*We initialise it to 0 because we wait
                                                      for the Producer to produce atleast a
                                                      item. Suppose ready was 1 and if
                                                      Consumer ran first he would be in an
                                                      empty buffer */
              critical=new Semaphore (1,false);/*We initialise it to 1 because when
                                                      the first Consumer thread tries
                                                      to enter its critical section, it
                                                      should be allowed to;
                                                      Subsequent threads will have to
                                                      wait since only 1 thread can
                                                      access its critical section at a time*/
              counter=new Semaphore(0,false); // duh!
              cons=new Consumer[numberOfThreads-1]; /*numberOfThreads-1 because 1 thread
                                                                is taken by the Producer*/
              //Creating Producer object
              prod=new Producer();
              //Creating the Consumer object and start the thread.
              for(int i=0;i<cons.length;i++)
                        cons[i]=new Consumer();
                        cons[i].start();
              prod.start();          
              //Printing to screen and file
    /*          for(int i=0;i<buffer.length;i++)
                   if(buffer[i]!=0)
                             System.out.println(buffer[i]);
                             outFile.println(buffer[i]);
              System.out.println("Total primes found between "+args[1]+" and "+toThisNumber+": "+counter.availablePermits()+"\n primes.txt written");
              outFile.println("Total primes found between "+args[1]+" and "+toThisNumber+": "+counter.availablePermits());
              outFile.close();*/                    
    static class Producer extends Thread {
         public void run(){try{
              while(in<buffer.length)     /*'in' should always be more than 'out'.Oherwise the consumer will try to access an empty index*/
                   {     System.out.println("producing");     
                        buffer[in]=fromThisNumber;
                        in++;
                        fromThisNumber++;
                        ready.release();
              catch (Exception e){e.printStackTrace();}
              System.out.println("ALL PRODUCING DONE");
    static class Consumer extends Thread {
         int tempout=0;
         public void run(){try{
              System.out.println("before while"+this.getId());
              while(tempout<=in)
                   System.out.println("before ready"+this.getId()+" "+ready.availablePermits()+" "+in);
                   ready.acquire();
                   System.out.println("before critical.acquire"+this.getId());
                   critical.acquire();
                   tempout=out;
                   out++;
                   critical.release();               
                   if(!isPrime(buffer[tempout]))
                        {System.out.println(buffer[tempout]+" by "+this.getId());buffer[tempout]=0;}
                   else {counter.release();System.out.println("prime added: "+buffer[tempout]+" by "+this.getId());}
                   critical.acquire();
                   tempout=out;
                   System.out.println("tempout:"+tempout+" of "+this.getId());
                   critical.release();
              System.out.println("ALL CONSUMING DONE"+this.getId());
         catch(Exception e){e.printStackTrace();}
         //Prime number-checking method     
         public boolean isPrime(int n){
              for(int i=2;i<=(n/2);i++)
                   if(n%i==0)
                        return false;
              return true;
    ===========================
    BTW, when I tried to change extends Thread to implements Runnable I got some kinda of error.
    Actually, my program is pretty complete... its just that something if messed up in my Consumer's run() method's while loop... I think
    I know guys its crazy to ask ya'll to look at so much code, but.... I'd really appreciate it. This assignment is killing me, been at it since 10 hours now....

  • How can I import all my favorites (including folders within) from internet explorer?

    In internet explorer my favorites are organised into folders but when I try to import these into firefox only the files that aren't in folders comes across, in this case 1.

    If you have problems with importing the IE Favorites in Firefox then export the favorites in IE to an HTML file and import that file in the Firefox Bookmarks Manager.<br />
    That way you also preserve any sorting that you may have done in IE with the Favorites and the favorites won't end up in a "From Internet Explorer" folder, but will be appended at the end of the Bookmarks Menu folder.
    * Export the favorites in IE to an HTML file (bookmarks.html): File > Import and Export
    * Import the HTML file in Firefox: Bookmarks > Show All Bookmarks > Import & Backup > Import HTML: From File
    See "Import from another browser" and "Import from file":
    * http://kb.mozillazine.org/Import_bookmarks

  • How can I get back my back into another fin from icloud

    Please let me know that how can I get back my backup which related to my previous I phone
    I was installed once on my new after unfortunately it deleted
    I tried one more time but I could not get back but I don't how to keep use it to bring it back. To this iphone4s

    Is this your issue >  http://support.apple.com/kb/HT5818
    If so...
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • How can I sort all my books into title order?

    Hi
    I'm familiar with how to search for book titles but it would be helpful if I could list all my books in alphabetical order.  Does anyone know how to do this please?
    Many thanks
    Rathi

    See http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    You can look at this extension:
    * SortPlaces: https://addons.mozilla.org/firefox/addon/9275

  • How can I get all of my graphics to import from FrameMaker?

    I am evaluating Robohelp HTML version 9, which I'm considering using for single-sourcing FrameMaker 7.1 files.
    I imported my FrameMaker files, and only 2 out of 75 graphics were imported.
    The results window shows that all FM files were imported successfully.
    However, in the Project Manager, only these two files appear.
    The graphics are BMPs, the same as all the other graphics.
    Everything about them seems to be the same as all the other graphics.
    So I prepared a TEST FrameMaker file. I placed the two graphics that had imported successfully first, along with a selection of the other graphics. Guess what? All of the graphics imported successfully into RH.
    Feeling optimistic, I imported my FrameMaker project into RH again, using the same TEST RH project. Guess what? Only the two original graphics appeared and no others.
    Can anyone help me solve this mystery?
    Thanks so much!

    Sounds like an issue with an individual graphic, not with the process itself. If the 2 successful graphics are the first or last in your project, I'd start testing by importing the graphics in closest proximity...otherwise you may have to import in batches to find the offending file.
    If you have a graphic in a format other than that of the "successful" graphics, you may want to test that format in particular.
    One thing to consider: As I'm sure you know, any missing resources (fonts, graphics, xrefs) and any errors in updating your book will keep FrameMaker from operating smoothly. If you are sending FM info elsewhere (PDF, HTML, Help) then these subtle deficiencies can cause problems with info sent out of FM as well. "Fix" your FM files and you might solve seemingly unrelated issues elsewhere.
    *Note: You mentioned you're testing single sourcing...FM7 files will require import to RoboHelp. With an eval copy of TCS3, you'd be able to create a link to FM10 files, allowing you update the RH9 via the FM10 files. It is a similar process, but by linking, you'll eliminate the importing and/or post processing of the HTML and significantly reduce the time needed to update your RH content.
    Also, when purchasing Adobe product, consider Suite purchases and maintenance contracts...I save tons of USD by doing this. See the math at http://blogs.roundpeg.com/2009/12/strategies-for-purchasing-adobe-software/
    -Matt

  • How can I keep all of my apps and stuff from one ID and move them to another ID without having to buy them all over again?

    Me and my mom share an account and I bought all my apps and stuff on their. so I made my own account so that it would just have my stuff and it would charge to my credit card. So I was wondering how you can sink all the apps and stuff from one ID to another or link the accounts so that I don't have to repurchase everything.

    You can render the ebook on an instructional application called Zankura. Not only can you control the screen scrolling, but all the students can freely annotate with their stylus. www.zankura.com.

  • How can i move ALL of my Iphoto/aperture pictures from the internal hd to a external hd at one session?  just need to how to do this. (I know this is a long process; just looking for a faster method).

    looking for a way other than post and click. 

    I'm not at all sure what you mean by "post and click", but if you wish to move your entire iPhoto Library, then follow these steps:
    http://support.apple.com/kb/PH2506
    As far as I know, you can set up Aperture to access its library on an external drive; I tried to find some info for you and found this support site for it - you might want to check it out. Also, you might want to check the manual on how to move the library.
    http://www.apple.com/support/aperture/

Maybe you are looking for