The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Searching for *.html files

Discussion in 'General Discussion' started by mealto, Oct 18, 2007.

  1. mealto

    mealto Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Inside File Manager, is there a way to search and show all *.html files? The search function is not showing any results at the moment using "*.html" without quotes.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The search is performing a regex search against your search, not a Microsoft Windows(R) file search. Searching for ".html" will work better.

    Perform an internet search for Perl Regex or Perl Regular Expressions for more details on the powerful searches you can perform with this tool.
     
  3. mealto

    mealto Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Using ".html" without quotes also brings up .shtml files too. Is there a way to just list files that end in .html?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, use the following regex:

    Code:
    \.html
    The \ will ensure that . is not interpreted as an operator but rather as a literal period.
     
  5. mealto

    mealto Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Once again David, you come to the rescue. Thanks very much!
     
Loading...

Share This Page