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

  • Good Essays

    D-Client arrived on time for his scheduled appt. with this writer. The client was alert and engaging throughout the session. During the course of the one hour session, he was aware about completing his first initial tx plan, at which he was open to discuss and complete. The client reported that he participated at HOI prior – 15 years ago for heroin. He relapses in 2009 due to his liver transplant surgery in December of 2008. When asked by this writer about happen during his relapse. According to the client, he relapses on RX medication-oxycodone. He’s been abusing his Rx medication for 6 years. This writer asked the client about how his relapse affects his livelihood. According to the client, he affected him greatly financially whereas he spent his entire $150,000 inheritance on RX medication on the street. The client further mentioned that he spend $5,000 a week on daily Rx medication of 30 capsules of oxycodone. The client expressed his disappointment in himself because he was doing well, but since his surgery, at which the client recognized as a blessing, caused his addiction to pain killers. The client continues to say, “I cannot blame anyone, but me.” The client had a desire to open up his own Bar/Restaurant…

    • 652 Words
    • 3 Pages
    Good Essays
  • 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
  • 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
  • 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
  • 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

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

    • 4553 Words
    • 34 Pages
    Satisfactory 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
  • 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

    Causes Of The NFL

    • 154 Words
    • 1 Page

    The National Football League is a professional football league that is made up of 32 teams and is the popular and richest sport in the United States. The NFL supports numerous of causes such as “play 60”, salute to service, “NFL green” and the league also supports breast cancer awareness in the month of October. The NFL follows through with reasonable information about the cause and the league also ask for donations for breast cancer awareness. The causes the NFL supports are relevant to their business, for instance, salute to service is relevant to the NFL because they avidly supporting the troops by players and coaches traveling abroad to salute the men and women of service. The salute to service is also pertinent the league because former…

    • 154 Words
    • 1 Page
    Good 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
  • Good Essays

    Thesis Statement

    • 637 Words
    • 3 Pages

    A thesis statement takes a clear position on an issue. This is different from normal topic sentences because the thesis statement cannot be neutral. This is your own opinion that you intend to back up (think of it like a debate). The thesis statement is your reason and motivation for writing. A non-thesis thesis does none of these things.…

    • 637 Words
    • 3 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