Preview

regular expression and it's applications

Powerful Essays
Open Document
Open Document
1179 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
regular expression and it's applications
REGULAR EXPRESSIONS AND IT’S APPLICATIONS

REGULAR EXPRESSIONS
A regular expression is a specific pattern that provides concise and flexible means to "match" (specify and recognize) strings of text, such as particular characters, words, or patterns of characters. Common abbreviations for "regular expression” include regex and regexp. It is a Compact mechanism for defining a language.

OPERANDS OF REGULAR EXPRESSION
The empty string ε
Single characters of the underlying alphabet
Shorthand for groups of characters
(Letter for A-Z or a-z, digit for 0-9, etc.)
Legal regular expressions (an operator might be applied to the result of an operator)

REGULAR EXPRESSION OPERATORS

PRECEDENCE OF OPERATORS

APPLICATION: WEB SEARCH ENGINES
One use of regular expressions that used to be very common was in web search engines. Archie, one of the first search engines, used regular expressions exclusively to search through a database of filenames on public FTP servers. Once the World Wide Web started to take form, the first search engines for it also used regular expressions to search through their indexes. Regular expressions were chosen for these early search engines because of both their power and easy implementation. A query such as regular expression could be translated into the following regular expression.

, then, of course, would be the set of all characters in the character encoding used with this search engine. The results returned to the user would be the set of web pages that were accepted by this regular expression.
APPLICATION: SOFTWARE ENGINEERING
Software applications are nowadays component-based for reusability. A problem with component based applications is how to precisely define the interplay on the component interfaces. Since a programmer does not have complete control over the integrating components, it can lead to unpredictable behavior. Solving this problem would make it easy to understand the

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Unit 33 assignment 3 P3

    • 380 Words
    • 2 Pages

    By using this method of searching as well as the added filters it can enables you to very easily search the web without having to jump from many websites as it is all contained on this one site allowing you to easily compare and buy them.…

    • 380 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 6 True

    • 287 Words
    • 1 Page

    The LIKE keyword can be used to search data with any kind of data type. TRUE…

    • 287 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    It allows you to search for an item and its variations by entering the root of the term. An example would be: color, colour.…

    • 310 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    unit 6

    • 360 Words
    • 2 Pages

    15) The LIKE keyword can be used to search data with any kind of data type.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 4639 Words
    • 19 Pages

    Typically this constitutes an interface for communicating with the device, through the specific computer bus or communications subsystem that the hardware is connected to, providing commands to and/or receiving data from the device, and on the other end, the requisite interfaces to the operating system and software applications. It is a specialized hardware-dependent computer program which is also operating system specific that enables another program, typically an operating system or applications software package or computer program running under the operating system kernel, to interact transparently with a hardware device, and usually provides the requisite interrupt handling necessary for any necessary asynchronous time-dependent hardware interfacing…

    • 4639 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    You need to identify the events (inputs) that each of these applications would receive and say how suitable an event driven language might be to handle those events.…

    • 532 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    7. What utility searches through one or more files to see whether any contain a specified string of characters?…

    • 1070 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    What uses keywords plus special symbols to find the exact information you want by eliminating results that are too general or too broad?…

    • 1566 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    The underscore symbol (_) is used in a search pattern to indicate "exactly one character in this position".…

    • 4553 Words
    • 34 Pages
    Satisfactory Essays
  • Good Essays

    Using the Internet to find information, it's important to use a search engine to find the information that you need on the Internet. Search engines look for websites based on the criteria a person enters into the search box. The best-known search engine is Google, other popular search engines include Yahoo! search, Bing and…

    • 2519 Words
    • 11 Pages
    Good Essays
  • Satisfactory Essays

    e. The set of all strings consisting of zero or more as with a semicolon after each one.…

    • 470 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    (): The parentheses aren’t true wildcards, not in a matching sense. They allow you to divide a pattern into logical sequences.…

    • 404 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The first design pattern we will explore is the Adapter pattern, also known as the wrapper pattern. Generally speaking, the adapter design pattern converts one interface for a class or object into another, separate but compatible interface. This allows classes that would normally be autonomous of each, due to incompatibility to work together by supplying a specific interface to the end user, while still making use of the original interface as well. The adapter does the conversion between the two interfaces, and also converts the data that gets used in the forms needed within the overall solution. The adapter design pattern works like a bridge between to vastly different interfaces, making…

    • 817 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Laudon Mis 6ce Ch06

    • 12334 Words
    • 59 Pages

    3) Program-data dependence refers to the coupling of data stored in files and software programs that use this data such that changes in programs require changes to the data.…

    • 12334 Words
    • 59 Pages
    Satisfactory Essays
  • Good Essays

    Interaction is the communication between a user and some device or system. Frameworks provide a way to create what the interaction between the user and a device should be. It allows us to test and resolve any issues during this interaction process. Testing can be performed as whole and not just as individual components (Helm, 2008).…

    • 885 Words
    • 4 Pages
    Good Essays

Related Topics