Clever Geek Handbook
πŸ“œ ⬆️ ⬇️

Wildcard

The joker symbol ( substitution symbol ) is a symbol used to replace other symbols or their sequences, thus leading to symbol patterns . The development of wildcard characters is regular expressions .

Content

Telecommunications

In data transmission, a joker symbol is a symbol with which you can replace any predefined set of other symbols.

  • In the high-frequency radio range (HF) during automatic communication ( English automatic link establishment ), the character β€œ?” Can correspond to any of the following 36 characters: from β€œ A ” to β€œ Z ” and from β€œ 0 ” to " 9 ".
  • It must be agreed in advance whether the joker represents a single character or a string of characters .

Computer Science

Most often, two different characters are used - to replace any string of characters and to replace any single character. The asterisk ( * ) is almost always used as the first. At the same time, it can also mean an empty string (absence of characters).

In command line interpreters of various operating systems: COMMAND.COM in DOS , cmd.exe in Microsoft Windows , various script shells in * nix - wildcard characters are used: a question mark ( ? ) As a replacement for one character and an asterisk in the above sense. Using them, you can operate (list, delete, copy, etc.) immediately with groups of files. Examples of commands:

  copy * .txt> all.txt    

copies the contents of all text files in the current directory to a single file (DOS, Windows).

  rm *. ???

deletes all files in the current directory whose extension consists of exactly three characters ( sh ).

In database management programs, such as SQL (instead of *, the percent sign is %, instead of? Is the underscore _) or Microsoft Access , more precisely in their scripting languages, wildcard characters can be used in LIKE expressions:

SELECT * FROM books WHERE book_name LIKE '%Ρ…ΠΈΠΌΠΈ%';

In regular expressions, the concept of wild symbols has been further developed. They have special notation not only for one (".") And any number (quantifier "*") of characters, but also for different classes of characters (for example, empty characters "\ s"), alternative expressions ("|") and much more another.

Sources

  • MIL-STD-188

See also

  • Search pattern

Links

  • How to Use Wildcards
  • shwild: Shell-compatible wildcards (C / C ++ )
Source - https://ru.wikipedia.org/w/index.php?title=Substitution Symbol&oldid = 92391900


More articles:

  • Renov, Vasily Ivanovich
  • Krones
  • Tales of Dark
  • Chernyakov, Dmitry Feliksovich
  • 1976 Canadian Grand Prix
  • Darkwood (Stavropol Territory)
  • Kazakhstan Football Cup 2001
  • Berik Castle
  • Gogolevsky, Alexander Vladimirovich
  • Snooker season 2003/2004

All articles

Clever Geek | 2019