Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 3
    Recall that in RegEx (not file globbing) * means "zero or more of the previous character", you need .*\.html probably. Good luck.
    – shellter
    Commented Jul 3, 2023 at 22:01
  • 2
    * as the first character in a regexp is undefined behavior per POSIX so YMMV with what any awk would do with that.
    – Ed Morton
    Commented Jul 3, 2023 at 22:18
  • 1
    You are referring a glob pattern. Same concept, although it is not, specifically, a "regular expression pattern".
    – Reilas
    Commented Jul 4, 2023 at 2:51
  • 1
    If you want to match a string that ends in foo just write foo$. Adding .* in a regexp (or * in a globbing pattern) in front of foo is pointless unless you wanted to capture the matching string to do something with it, which you don't.
    – Ed Morton
    Commented Jul 4, 2023 at 11:07
  • Thank you all for your comments. Much appreciated. Commented Jul 5, 2023 at 20:35