Loading ...
Sorry, an error occurred while loading the content.

Re: [NTB] Clip or no clip or not at all.

Expand Messages
  • Marcelo Bastos
    ... Simple regex case. Replace Frása an Lae - Lá( d+) Phrase of the Day - Day d+ .mp4 Frása an Lae - Lá d+ Phrase of the Day - Day d+ .mp4 with
    Message 1 of 2 , Feb 26, 2013
    View Source
    • 0 Attachment
      Interviewed by CNN on 26/02/2013 09:49, bruce.somers@... told the world:
      > I've run into a new problem that I think may be solvable using regular expressions.
      >
      > Out of
      > Frása an Lae - Lá276 Phrase of the Day - Day 276.mp4 Frása an Lae - Lá276 Phrase of the Day - Day 276.mp4
      > Frása an Lae - Lá277 Phrase of the Day - Day 277.mp4 Frása an Lae - Lá277 Phrase of the Day - Day 277.mp4
      > Frása an Lae - Lá278 Phrase of the Day - Day 278.mp4 Frása an Lae - Lá278 Phrase of the Day - Day 278.mp4
      >
      > I need to producea a file with lines
      > rename "Frása an Lae - Lá276 Phrase of the Day - Day 276.mp4" Lá276.mp4
      > rename "Frása an Lae - Lá277 Phrase of the Day - Day 277.mp4" Lá277.mp4
      > rename "Frása an Lae - Lá278 Phrase of the Day - Day 278.mp4" Lá278.mp4
      >
      > I thus need to reduce the strings of type 'Frása an Lae - Lá276 Phrase of the Day - Day 276' in the right-hand set of columns, to 'Lá276' .
      >
      > As it is not possible to highlight only the right-hand set of colums, I cannot restrict the range of changes accordingly, to that column. Or is there a way to do that?
      >
      > I need to somehow delete (replace with a null-string) the characeter string 'Day nnn' in all lines, although the number, nnn, varies. Is there a way to do that, with or without a cllp?
      >
      > I would dearly appreciate any help.
      >
      > Bruce

      Simple regex case.

      Replace

      Frása an Lae - Lá(\d+) Phrase of the Day - Day \d+\.mp4 Frása an
      Lae - Lá\d+ Phrase of the Day - Day \d+\.mp4

      with

      rename "Frása an Lae - Lá$1 Phrase of the Day - Day $1\.mp4"
      Lá$1\.mp4"

      --
      MCBastos

      This message has been protected with the 2ROT13 algorithm. Unauthorized use will be prosecuted under the DMCA.
      -=-=-
      ... Sent from my table at Ten Forward.
      * Added by TagZilla 0.7a1 running on Seamonkey 2.16 *
      Get it at http://xsidebar.mozdev.org/modifiedmailnews.html#tagzilla
    Your message has been successfully submitted and would be delivered to recipients shortly.