Expressão regular

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ccmancio
    Old Hand
    • May 2005
    • 235

    Expressão regular

    Como faço para mostrar somente os subdiretórios que iniciam com !(

    já tentei com :

    ...\!(* mas não funciona
    ...\!*, mas tambem não funcionou
    ...\[!][(]*, mas tambem não funcionou
    ...\{!}{(}*, mas tambem não funcionou
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    I think you are looking for:
    .\...\!*\;-.\*.*
    Aaron P Scooter Software

    Comment

    • ccmancio
      Old Hand
      • May 2005
      • 235

      #3
      Não funcionou

      Eu tenho o seguinte :
      Diretorio1
      '--!(SubDir1)
      | '--Arquivo1.1
      |
      '--!(SubDir2) (tamanho zero/Sem arquivos)
      |
      '--SubDir3
      '--Arquivo3.1

      Eu preciso que mostre apenas :
      Diretorio1
      '----!(SubDir1)
      '----!(SubDir2)

      O nome do subdiretorio contem os caracteres ! e ( e )

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16002

        #4
        Hello,

        So you need to hide all files within any !*\ directories? You could then add a filter to do that, too. How about:
        -.\*.*;-.\...\!*\*.*;.\...\!*\
        Aaron P Scooter Software

        Comment

        • ccmancio
          Old Hand
          • May 2005
          • 235

          #5
          Não funcionou novamente, não aparece somente os diretorios começando com !(, mem os começando com !( sem arquivos

          O nome do diretório é !(nome1), não é !nome1. ok ?

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 16002

            #6
            I think Google Translate is having trouble with parsing this. Could you post a screenshot of the directory structure?

            If I understand correctly, you want to find only folder names that begin with !, but then also have parenthesis around them, like !(name).

            -.\*.*;-.\...\!(*)\*.*;.\...\!(*)\

            Do you see what each part of this is doing?
            -.\*.* = Hides all files in the base folder, not in a folder.
            .\...\!(*)\ = Shows only items that have the name !(*) where * is something.
            -.\...\!(*)\*.* = Hides any files that would be in any of the above Shown folders.
            Aaron P Scooter Software

            Comment

            • ccmancio
              Old Hand
              • May 2005
              • 235

              #7
              Agora funcionou !!!
              Mas só precisei dos dois primeiros itens, colocando o primeiro em "Exclude files" e o "Segundo em"Include Folders"

              Muito obrigado

              Comment

              Working...