search
HomeCommon ProblemWhat is the difference between wildcard characters * and ?

The difference between wildcard characters * and ? is that "*" can be used to replace zero, single or multiple characters, while "?" can only be used to replace one character; "*" means that the number of matches is unlimited , while the number of matching characters for "?" is limited.

What is the difference between wildcard characters * and ?

#The operating environment of this article: Windows 7 system, Dell G3 computer.

The difference between wildcard characters "*" and "?" is that "*" can be used to replace zero, single or multiple characters, while "?" can only be used to replace one character. "*" means that the number of matches is unlimited, while "?" means that the number of matching characters is limited.

This technique is mainly used in English searches. For example, if you enter ""computer*", you can find words such as "computer, computers, computerised, computerized", etc., while if you enter "comp?ter", you can only find Words such as "computer, computer, computer".

Extended information:

The wildcard characters mainly include asterisks (*) and question marks (?), which are used to fuzzy search files. When searching for folders , you can use it to replace one or more real characters; when you don’t know the real characters or are too lazy to enter the complete name, wildcards are often used to replace one or more real characters.

How to use wildcards - Fuzzy conditions Sum:

1. For example, requirement: Find the total quantity of "T-shirts" included in the product

You need to sum up the total quantity of T-shirts in the item column, enter the formula: =SUMIF(A2:A18,"*T-shirt*",D2:D18) Because we are not sure whether there is other data before and after "T-shirt", so the condition is "*T-shirt*", then we can add all data containing "T-shirt" Find the quantity of "shirt".

2. For example, ask: find the total quantity corresponding to the last word in the product is "skirt", and the cell is 5 characters

In the item column Enter the formula in: =SUMIF(A2:A18, "????skirt", D2:D18), because it must be 5 characters and the last one is "skirt", so enter 1 "????skirt" for the condition "? "Represents any 1 character.

Related free learning recommendations: php programming (Video)

The above is the detailed content of What is the difference between wildcard characters * and ?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download

Atom editor mac version download

The most popular open source editor