Results 1 to 3 of 3

Thread: Extracting elements from the list

  1. #1
    Registered
    Join Date
    Apr 2014
    Location
    Brazil
    Posts
    1
    Rep Power
    0

    Extracting elements from the list

    Hello guys.

    I want to print a DVD cover with a list of mp3 files in it. With Winamp software I can make a list then its a matter of copy and paste. The problem is I dont need the numbers it sets before the file names. Ex:
    1. ACDC - Jailbreak - ARIEL PERAZZOLI (4:22)
    2. ACDC - Jailbreak (Ariel Perazzoli Remix) (4:22)
    3. ACDC vs LMFAO - Party Rock Me All Night Long (Mashup) (3:34)

    So, how do I extract those numbers, dots and spaces that comes before namefiles using microsoft Frontpage software?

    Thanks in advance.

  2. #2
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,458
    Rep Power
    22
    I would apply a Regex expression like this \d*\.\s to each line of the file to isolate the first number(s) (\d*) dot (\.) and space (\s) before I uploaded (or copy/pasted) it. I don't know how to do that with FrontPage though, probably with JavaScript.

    added: If you want to copy/paste alot, you can do this online here - http://fiddle.re/w7ku9

    Hit the 'Java' button (which should be green).
    Copy/paste each line (separate) into each 'input' field.
    Click the 'Test' button.
    The results will be in both of the 'replace' fields.
    Last edited by snowmaker; 4-30-14 at 09:33 PM. Reason: changed the 'h' to a 's'
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

  3. #3
    target='_blank' snowmaker's Avatar
    Join Date
    Nov 2002
    Location
    West Virginia
    Posts
    3,458
    Rep Power
    22
    I just discovered this can be done in Notepad++.

    Start the editor, paste the list, open the 'Replace' dialog, enter the regex expression I posted above into the 'Find what:' field, the 'Replace with' field should be blank, select the 'Regular expression' option in the 'Search Mode' box, then click the 'Replace All' button.

    This can probably be done in a similar way, with similar text editors. Windows Notepad is not similar enough.
    -bruce /* somdcomputerguy */
    'If you change the way you look at things, the things you look at change.'

Posting Permissions

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