Wildcard characters in GetFile in Directionary Searchpatern

Source: Internet
Author: User

Let's start by introducing searchpattern wildcard characters.

Wildcard characters Describe
* 0 or more characters
? Exactly one character

Example:
① "*t" searches all names in path that end with the letter "T"
② "s*" searches all names in path that begin with the letter "s"

① exactly three characters searchpattern returns a file with an extension of three or more than three characters.
"*.ABC" returns files with the extension. ABC,. ABCD,. ABCDE,. ABCdef, and so on.
② a character, two characters, or more than three characters searchpattern only returns files that have an extension that is exactly equal to that length.
"*.RMVB" only returns files with the extension. rmvb.
"*. Cache only returns the extension.  The cache file.
"*.csproj" only returns files with the extension. csproj.

Wildcard characters in GetFile in Directionary Searchpatern

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.