1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

v18 regex help please

Discussion in 'Support' started by Charles G, Jul 17, 2015.

  1. Charles G

    Joined:
    Apr 2, 2011
    Messages:
    1,015
    Likes Received:
    0
    I would like to re-organize my *.URL files to be stored in %USERPROFILE%\Favorites\ where the folder will be based on the line that starts "URL=" so for the following line

    URL=http://www.mozilla.com/en-US/firefox/central/

    the file that has this line in it would be stored in %USERPROFILE%\Favorites\Mozilla.com\ then from that I can take care of duplicate files.

    I am new to RegEx expressions in TCMD but I see so far I need to use

    ^URL=$

    but not sure how to extract the needed string (mozilla.com) from the line.

    All help greatly appreciated!
     
  2. ben

    ben

    Joined:
    Jan 3, 2012
    Messages:
    25
    Likes Received:
    4
    Code:
    %@regexsub[1,URL=http://(?:www\.)?([^/]+),%line]
     

Share This Page