Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. wildcard interpretation

wildcard interpretation

Scheduled Pinned Locked Moved C / C++ / MFC
algorithmsregextutorialquestioncareer
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    William Engberts
    wrote on last edited by
    #1

    Hi everybody, I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match! Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work! Thanks in advance! William

    R S 2 Replies Last reply
    0
    • W William Engberts

      Hi everybody, I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match! Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work! Thanks in advance! William

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      Have a look at CFileFinder - Extend the functionality of CFileFind MFC class[^].

      It is a crappy thing, but it's life -^ Carlo Pallini

      1 Reply Last reply
      0
      • W William Engberts

        Hi everybody, I am currently working on a program for which I need to select filenames based on a template that can include wildcards. Since I get the filenames in a fixed list from another system, I cannot use the wilcards in retrieving the filenames in the first place. I would like to use wildcards the "Unix way", which means that for example "ABC*DEF*G?I.xyz" would be a possible wildcarded template to which not anything starting with ABC should match! Of course, I can write such an algorithm, but since I am lazy, I would appreciate if anyone out there knows of a library that will do the job? Would save me a lot of work! Thanks in advance! William

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        wildcard interpretation == "globbing" (yeah, I know - don't ask me where the name came from). This CodeProject article[^] has (or claims to have) globbing code.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups