• Home /Exam Details (QP Included)>Main Exam>Optional Subject-Medical Group>Computer Science / Wild Card Character In DOS – Computer Science Notes – For W.B.C.S. Examination.
  • Wild Card Character In DOS – Computer Science Notes – For W.B.C.S. Examination.

    Alternatively referred to as a wild character or wildcard character, a wildcard is a symbol used to replace or represent one or more characters.Continue Reading Wild Card Character In DOS – Computer Science Notes – For W.B.C.S. Examination.

    The most common wildcards are the asterisk (*), which represents one or more characters and question mark (?) that represents a single character. In the examples below of how a wildcard may be used, realize that wildcards are relatively universal.

    Wildcard basics
    Percent ( % ) in a wildcard

    The percent symbol is used in SQL to match any character (including an underscore) zero or more times.

    Asterisk ( * ) in a wildcard

    The asterisk in a wildcard matches any character zero or more times. For example, “comp*” matches anything beginning with “comp” which means “comp,” “complete,” and “computer” are all matched.

    Question mark ( ? ) in a wildcard

    A question mark matches a single character once. For example, “c?mp” matches “camp” and “comp.” The question mark can also be used more than once. For example, “c??p” would match both of the above examples as well as “coop.” In MS-DOS and the Windows command line, the question mark also can match any trailing question marks zero or one times. For example, “co??” would match all of the above matches, but because they are trailing question marks would also match “cop” even though its not four characters.

    Open and close brackets ( [ ] ) in a wildcard

    With Unix shells, Windows PowerShell, and programming languages that support regular expressions the open and close bracket wildcards match a single character in a range. For example, [a-z] matches any character “a” through “z,” which means anything not in that range like a number would not be matched.

    Match anything starting with “comp” and ending with “r.” In other words, this would find “computer” and “compiler” in your document. However, keep in mind that “*” is greedy, which means everything is matched up to “r.” In other words, if there’s an “r” anywhere after comp it’s matched. So, “computer your” is matched since it begins with “comp” and your ends with “r.”

    Using brackets indicate to Microsoft Word to look for any of the letters contained in the brackets. In this example, “e” or “o” are matched, so find would match either “dell” or “doll.”

    The brackets can also be used to search for a range of characters. In the above example, this range includes the letters from “o” to “u.” This range matches words like “doll” and “dull” in your document.

    Using an exclamation mark in the brackets tells the Find to no match any of the characters in the bracket. In the above example, this wildcard tells the Find to not match “dell,” but match anything else beginning with “d” and ending in ‘ll’.

    Please subscribe here to get all future updates on this post/page/category/website

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

     WBCS Foundation Course Classroom Online 2024 2025 WBCS Preliminary Exam Mock Test WBCS Main Exam Mock Test WBCS Main Language Bengali English Nepali Hindi Descriptive Paper