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.

Required fields*

3
  • Please edit your question and add more details. How exactly are you using the regular expression to match the file names? Show the command(s) or code you are using, the actual result/output you get and the expected output. Commented Jul 19, 2022 at 14:34
  • If you want file beginning with ~$, why is the second character set to be anything other than /. Can you try echo ./~\$*? Commented Jul 19, 2022 at 14:39
  • I assume you mean filenames, not file contents. But what you using that regex with? Commented Jul 19, 2022 at 14:41