Regular Expressions. Abstract
|
|
|
- Mary Dixon
- 9 years ago
- Views:
Transcription
1 Regular Expressions Sanjiv K. Bhatia Department of Mathematics & Computer Science University of Missouri St. Louis St. Louis, MO Abstract Regular expressions provide a powerful tool for textual search in computers. The language of regular expressions forms the basis for many applications and languages in computers, including vi, sed, awk, and perl. In this article, I ll present the use of regular expressions to perform search and replace operations, using vi, sed, and awk as the applications. 1 Introduction Regular expressions provide one of the most powerful tools in computer science to perform search and replace operations in textual data. Their power comes from the efficiency and flexibility afforded by allowing for variable information in search patterns. They can be extremely simple as just a string composed of letters and numbers. On the other extreme, they can be extremely complex in the form of strings that are entirely composed of special symbols that may not be easily decipherable. However, they follow simple rules of grammar that are not hard to learn. It takes only a little practice to master the complexities inherent in the set of special symbols. Furthermore, the set of special symbols is fairly small and a person with limited experience can start to use this language quickly. A regular expression is loosely defined as a string of letters, numbers, and special symbols to describe one or more search strings. The search string may contain fixed or variable information. For example, you may want to search for the string gray in a text but you may not be sure whether the author has spelled the string as gray or grey, with both the spellings treated as correct by the spell checker. A regular expression allows you to specify
2 the variable information in search strings, while limiting the scope of search. Thus, both gray and grey are valid for search but griy is not. Any person, who has ever performed a search for a string in a document on the computer, or even over the internet, has already been exposed to at least the simplest form of regular expressions the literal string being searched for. The above statement holds regardless of whether the platform for search is running Unix, Windows, or some other environment. In this article, I am going to limit myself to Unix/Linux environments, and present the utilities from these platforms to illustrate the use and power of regular expressions. 2 Character Set for Regular Expressions A regular expression is composed of two types of characters literals and metacharacters. Literals are characters that represent themselves. In that respect, the entire alphabet upper case and lower case characters in English are treated as literals. In addition, the numerals act as literals most of the time. Metacharacters are special characters that do not represent themselves. They are a means to connect the literals and provide for variable information in the regular expressions. It has been suggested that literals form the words in the language of regular expressions while metacharacters provide the grammar. An important metacharacter is a delimiter for the regular expression. Delimiters enclose a regular expression at the beginning and end, and are always picked from the special characters. Effectively, a delimiter should not be considered to be a part of the regular expression. In the utilities such as vi and sed, a delimiter can be any special character as long as we use the same character on both ends of the expression. More often than not, people have used the character / as the delimiter. The reason for this choice is because / is used for search in vi. Some utilities, such as the grep family, do not require the use of delimiters to enclose the regular expression. The set of metacharacters used in a regular expressions is fairly small and is enumerated as follows (notice the use of quoted metacharacters using \ character): ˆ $. * [ ] \{ \} \ \( \) In addition, the following metacharacters have been added to the above set to support extended regular expressions, such as the ones used in egrep +? ( ) 2
3 The character - is considered to be a metacharacter only within the square brackets to indicate a range; otherwise, it is treated as a literal. Even in this case, the dash cannot be the first character and must be enclosed between the beginning and the end of range characters. With the knowledge of character set, we can now start to develop the rules to create regular expressions for search. 3 Basic Regular Expressions A simple regular expression is one that is composed of just the literals. Recall that a literal is defined as a character that represents itself. Thus, the character a is expected to match itself in any text string but it may or may not match its upper case version A. Similarly, a number 2 matches itself in most of the circumstances. In the rest of this article, I ll enclose the regular expressions in a pair of / characters, and underline the matching portions in the text. A simple regular expression /ring/ will match the following patterns: The phone is ringing Joe proposed to Mary with a ring. Similarly, the regular expression /day is/ matches Today is a Tuesday. John said that his day is made. The expression /April 26, 1995/ matches John was born on April 26, As seen from above, a simple regular expression contains literals that can be alphabets, numbers, or special characters. In the next section, we ll illustrate the use of metacharacters to add variable information into the regular expressions. 4 Metacharacters for Variable Information Metacharacters are used to include the variable information in text strings being searched for. They are invariably selected from the set of special characters enumerated in Section 2. In this section, I ll present the use of each metacharacter in a separate subsection. 3
4 4.1 Metacharacter. The metacharacter representing period (.) is used as a variable to match a single occurrence of any character. Thus, the regular expression /.ing/ matches any character followed by the string ing as follows: John likes singing in the club. Someone please stop the running child. A sequence of periods will use multiple occurrences of characters. The expression /lo..ed/ matches Be careful with the loaded gun. John entered the room and looked around. A number of people use different separator for month, day, and year in dates. Thus, the expression / / will match any of the following formats of date: Today s date is 04/26/2005 Today s date is Today s date is Metacharacter pair [] The pair of square brackets enclose a set of characters such that any one of the specified characters is considered to be a match. Thus, a vowel can be matched by the expression /[aeiou]/. We can look for a word that contains two consecutive vowels by specifying two sets, one after the other, as /[aeiou][aeiou]/ to match It is a beautiful day. Be careful with the loaded gun. We can use the metacharacter - to specify a range of characters. For example, the expression /[a-z]/ specify all the lower case letters of the English alphabet. Similarly, the expression /[0-5]/ specifies all the digits in the set {0, 1, 2, 3, 4, 5}. This set is also useful when we try to combine a search where we are unsure of the first character being in upper case or lower case. For example, /[ss]unday/ matches Sunday is a holiday. The pair of square brackets are also used to indicate the absence of a set of characters. This is achieved by starting the set with the metacharacter ˆ. The pattern /[qq][ˆu]/ searches for all the occurrences of q or Q that are not followed by a u, as Iraq does not export much oil these days. 4
5 Within a pair of square brackets, some metacharacters, such as \, $,., and *, lose their special meaning. Also, ˆ is special only if it is the first character after the left square bracket. 4.3 Metacharacters ˆ and $ The metacharacters ˆ and $ are used to anchor a regular expression to the beginning and end of a line. A regular expression starting with ˆ matches the expression at the beginning of the line. For example, /ˆIraq/ will match in a line only if it occurs at the beginning of a line, such as Iraq is in news these days. but it will not match the word if it is in the middle of the line, such as There was no front page news on Iraq today. In a similar manner, the metacharacter $, if present at the end of a regular expression, matches the expression at the end of the line. The expression /Iraq$/ matches That man is from Iraq Notice that the string being searched for is not followed by any character. 4.4 Metacharacter * The metacharacter asterisk (*) can follow a regular expression that represents a single character or even an arbitrary regular expression to represent a pattern of characters. For now, let us concentrate on single character regular expressions. The asterisk represents zero or more occurrences of the preceding regular expression. This is a departure from the interpretation of * in Unix shell where it is used as a wildcard for any number of characters regardless filenames without regard to preceding character. As a first example, consider the expression /ab*c/. This expression will match the following strings I can hardly follow John s accent. Barney knows his abc. While typing abbbbbbc, the key on b got stuck. The first example matches ac for zero occurrence of b (character preceding *). The regular expression preceding * can be a set of characters enclosed in a pair of square brackets. This will match zero or more occurrences of any character described in the set. For 5
6 example, a number of times, we get s that have been forwarded from one person to another. These s generally have a set of characters preceding each line described as > >> > > > depending on the mailer settings. Since these characters occur at the beginning of line, we can anchor our regular expression as /ˆ[> ]*/ and delete them in vi by the command :%s/ˆ[> ]*// A general rule to remember for metacharacter * is that it attempts to find the longest possible match in a line. The expression /(.*)/ is used to indicate a set of characters enclosed in parentheses. However, if there are two sets of parentheses in the line, it encloses both of them as Let us look for (this) and (that). If we want to match just the first set of characters in parentheses, we have to use an expression such as /([ˆ)]*)/, which looks for the left parenthesis, then any set of characters other than the right parenthesis, and finally, the right parenthesis. Let us look for (this) and (that). 4.5 Searching for the Occurrence of Metacharacters The metacharacters can be searched by quoting, using the character \ to precede the metacharacter. The \ makes the metacharacter lose its special meaning and it is treated as a literal. As an example, the period in a sentence can be searched by preceding it with \, such as /i\.e\./, and it matches Let us look for the period, i.e Range Metacharacters It is also possible to specify a predetermined number of characters by using the pair of quoted braces enclosing a range. For example, a set of five consecutive as can be described by /a\{5\}/, a set contained at least 3 as can be described by /a\{3,\}/, and a set containing between 3 and 7 as is described by /a\{3,7\}. The number to specify the range must be positive and less than
7 4.7 Bracketing Expressions The regular expressions can be bracketed by using a pair of quoted parentheses, also known as tagged metacharacters. This allows the search for a repeating regular expression that is made up of more than one character. For example, the multiple consecutive occurrences of string abc can be searched by /\(abc\)*/. This will match a sequence such as John speaks only abcabcabc and nothing more. The range metacharacter can be used to search for a fixed number of repetitions such as /\(abc\)\{2\}/ John speaks only abcabcabc and nothing more. A regular expression to validate money amounts can be written as /\$[0-9]\{1,3\}\(,[0-9]\{3\}\)*\.[0-9]\{2\}/. This expression will match The CEO earns $11,540, The minimum wage should be $ Using Regular Expressions in Editing Regular expressions make it easy to perform editing in large documents, specially when we are dealing with variable information. We have already see the use of regular expressions to perform search in documents. In this section, we ll see the simple search and replace operation, and then, move on to manipulate the variable information to our convenience. The simple search and replace command in vi or sed os given by s. In sed, the command is given as s/search pattern/replacement pattern/ where search pattern and replacement pattern are appropriate strings. A simple example to change a name is given by s/clinton/bush/ Another example to replace some variable information with fixed information will be s/[tt]hen/now/ In case we want to add some information before or after a variable pattern, we can do that easily by using the symbol ampersand (&). For example, if we have a set of lines as follows 7
8 John Smith makes 8.50 an hour. Mary Jo Ellen makes 9.25 an hour. and we want to put the $ sign in front of the numbers, we can achieve that by using s/[0-9]\.[0-9][0-9]/\$&/ resulting in John Smith makes $8.50 an hour. Mary Jo Ellen makes $9.25 an hour. Finally, we can use quoted parentheses to remember variable information in the search pattern and put that in replacement string using quoted digits. Within a regular expression, a quoted digit (\n) takes on the value of the string that the regular expression beginning with the nth \( matched. Let us assume a list of names in the format last-name, first-name initial We can change it to the format first-name initial last-name by using the following sed command s/\([ˆ,]*\), \(.*\)/\2 \1/ Notice how the first quoted left parenthesis matches the second part in the replacement string \1. It should also be noted that quoted parentheses can be nested into another pair. This does not cause any ambiguity in identification as they are identified by only the opening left parenthesis. Regular expressions in Unix also include some shortcuts to operate on a set of characters. Let us say that you have a document typed in all capital letters. You are required to change it such that the first letter of each word is capitalized but all the other letters are in lowercase. This is easily achieved by s/\<\([a-z]\)\([a-z]\{1,\}\)/\1\l\2/g This will change the sentence to THE GAS PRICE IS EXTREMELEY HIGH. The Gas Price Is Extremeley High. 8
9 6 The Final Word In this article, I have attempted to describe the use of regular expressions for search and replacement in the context of some Unix applications. Regular expressions provide a powerful language but as with any language, you have to practice using the language to become fluent in it. Of course, once you know the language well, it becomes almost second nature and you start wondering how you lived without it for so long. A note of caution. Regular expressions are interpreted by an underlying regular expression engine. And it appears that the engines do not always follow a standard. The issue gets very frustrating when you are trying to learn something and some of the things do not work as expected. A while back, I was on a Sun machine and tried to use the expression cat\(cat\)* to search for a number of consecutive cat patterns in a document. I was perplexed when the expression worked on Linux but not on Sun. And then, I discovered that it works if I use the utilities specified in /usr/xpg4/bin but not in /usr/bin which happened to be the ones set as my default. It is my hope that this article will lead you to an exciting journey of regular expressions. Happy regex ing!!! References [1] J. E. F. Friedl. Mastering Regular Expressions. O Reilly, Sebastopol, CA,
Regular Expressions. In This Appendix
A Expressions In This Appendix Characters................... 888 Delimiters................... 888 Simple Strings................ 888 Special Characters............ 888 Rules....................... 891
Lecture 18 Regular Expressions
Lecture 18 Regular Expressions Many of today s web applications require matching patterns in a text document to look for specific information. A good example is parsing a html file to extract tags
Lecture 4. Regular Expressions grep and sed intro
Lecture 4 Regular Expressions grep and sed intro Previously Basic UNIX Commands Files: rm, cp, mv, ls, ln Processes: ps, kill Unix Filters cat, head, tail, tee, wc cut, paste find sort, uniq comm, diff,
C H A P T E R Regular Expressions regular expression
7 CHAPTER Regular Expressions Most programmers and other power-users of computer systems have used tools that match text patterns. You may have used a Web search engine with a pattern like travel cancun
Regular Expressions. General Concepts About Regular Expressions
Regular Expressions This appendix explains regular expressions and how to use them in Cisco IOS software commands. It also provides details for composing regular expressions. This appendix has the following
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print In the simplest terms, grep (global regular expression print) will search input
AN INTRODUCTION TO UNIX
AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 24, 2010 OUTLINE 1 SHELL SCRIPTS Shells 2 COMMAND LINE Command Line Input/Output 3 JOBS Processes Job Control 4 NETWORKING Working From
Regular expressions and sed & awk
Regular expressions and sed & awk Regular expressions Key to powerful, efficient, and flexible text processing by allowing for variable information in the search patterns Defined as a string composed of
Using Regular Expressions in Oracle
Using Regular Expressions in Oracle Everyday most of us deal with multiple string functions in Sql. May it be for truncating a string, searching for a substring or locating the presence of special characters.
Creating Basic Excel Formulas
Creating Basic Excel Formulas Formulas are equations that perform calculations on values in your worksheet. Depending on how you build a formula in Excel will determine if the answer to your formula automatically
dtsearch Frequently Asked Questions Version 3
dtsearch Frequently Asked Questions Version 3 Table of Contents dtsearch Indexing... 3 Q. What is dtsearch?... 3 Q. How can I view and change my indexing options?... 3 Q. What characters are indexed?...
1.6 The Order of Operations
1.6 The Order of Operations Contents: Operations Grouping Symbols The Order of Operations Exponents and Negative Numbers Negative Square Roots Square Root of a Negative Number Order of Operations and Negative
1001ICT Introduction To Programming Lecture Notes
1001ICT Introduction To Programming Lecture Notes School of Information and Communication Technology Griffith University Semester 2, 2015 1 3 A First MaSH Program In this section we will describe a very
CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting
CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting Spring 2015 1 February 9, 2015 1 based on slides by Hussam Abu-Libdeh, Bruno Abrahao and David Slater over the years Announcements Coursework adjustments
HP-UX Essentials and Shell Programming Course Summary
Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor,
Ask your teacher about any which you aren t sure of, especially any differences.
Punctuation in Academic Writing Academic punctuation presentation/ Defining your terms practice Choose one of the things below and work together to describe its form and uses in as much detail as possible,
Introduction to Searching with Regular Expressions
Introduction to Searching with Regular Expressions Christopher M. Frenz Department of Computer Engineering Technology New York City College of Technology (CUNY) 300 Jay St Brooklyn, NY 11201 Email: [email protected]
Q&As: Microsoft Excel 2013: Chapter 2
Q&As: Microsoft Excel 2013: Chapter 2 In Step 5, why did the date that was entered change from 4/5/10 to 4/5/2010? When Excel recognizes that you entered a date in mm/dd/yy format, it automatically formats
Hands-On UNIX Exercise:
Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal
MATLAB Programming. Problem 1: Sequential
Division of Engineering Fundamentals, Copyright 1999 by J.C. Malzahn Kampe 1 / 21 MATLAB Programming When we use the phrase computer solution, it should be understood that a computer will only follow directions;
Regular Expression Searching
Regular Expression Searching Regular expressions allow forensics analysts to search through large quantities of text information for patterns of data such as the following: Telephone Numbers Social Security
Command Line - Part 1
Command Line - Part 1 STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat Course web: gastonsanchez.com/teaching/stat133 GUIs 2 Graphical User Interfaces
Kiwi Log Viewer. A Freeware Log Viewer for Windows. by SolarWinds, Inc.
Kiwi Log Viewer A Freeware Log Viewer for Windows by SolarWinds, Inc. Kiwi Log Viewer displays text based log files in a tabular format. Only a small section of the file is read from disk at a time which
CS 1133, LAB 2: FUNCTIONS AND TESTING http://www.cs.cornell.edu/courses/cs1133/2015fa/labs/lab02.pdf
CS 1133, LAB 2: FUNCTIONS AND TESTING http://www.cs.cornell.edu/courses/cs1133/2015fa/labs/lab02.pdf First Name: Last Name: NetID: The purpose of this lab is to help you to better understand functions:
23. RATIONAL EXPONENTS
23. RATIONAL EXPONENTS renaming radicals rational numbers writing radicals with rational exponents When serious work needs to be done with radicals, they are usually changed to a name that uses exponents,
The Center for Teaching, Learning, & Technology
The Center for Teaching, Learning, & Technology Instructional Technology Workshops Microsoft Excel 2010 Formulas and Charts Albert Robinson / Delwar Sayeed Faculty and Staff Development Programs Colston
dtsearch Regular Expressions
dtsearch Regular Expressions In the AccessData Forensic Toolkit, regular expression searching capabilities has been incorporated in the dtsearch index search tab. This functionality does not use RegEx++
WHAT ELSE CAN YOUR HOME PHONE DO?
visit a Telstra store 13 2200 telstra.com/home-phone WHAT ELSE CAN YOUR HOME PHONE DO? Everything you need to know about the features that make your home phone more helpful, flexible and useful C020 FEB16
Introduction to Python
WEEK ONE Introduction to Python Python is such a simple language to learn that we can throw away the manual and start with an example. Traditionally, the first program to write in any programming language
Tutorial 0A Programming on the command line
Tutorial 0A Programming on the command line Operating systems User Software Program 1 Program 2 Program n Operating System Hardware CPU Memory Disk Screen Keyboard Mouse 2 Operating systems Microsoft Apple
PUSD High Frequency Word List
PUSD High Frequency Word List For Reading and Spelling Grades K-5 High Frequency or instant words are important because: 1. You can t read a sentence or a paragraph without knowing at least the most common.
Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
Working with whole numbers
1 CHAPTER 1 Working with whole numbers In this chapter you will revise earlier work on: addition and subtraction without a calculator multiplication and division without a calculator using positive and
Regular Languages and Finite State Machines
Regular Languages and Finite State Machines Plan for the Day: Mathematical preliminaries - some review One application formal definition of finite automata Examples 1 Sets A set is an unordered collection
University Convocation. IT 3203 Introduction to Web Development. Pattern Matching. Why Match Patterns? The Search Method. The Replace Method
IT 3203 Introduction to Web Development Regular Expressions October 12 Notice: This session is being recorded. Copyright 2007 by Bob Brown University Convocation Tuesday, October 13, 11:00 AM 12:15 PM
A Crash Course on UNIX
A Crash Course on UNIX UNIX is an "operating system". Interface between user and data stored on computer. A Windows-style interface is not required. Many flavors of UNIX (and windows interfaces). Solaris,
Regular Expressions (in Python)
Regular Expressions (in Python) Python or Egrep We will use Python. In some scripting languages you can call the command grep or egrep egrep pattern file.txt E.g. egrep ^A file.txt Will print all the line
APA General Format: Research Papers. Title Page
APA General Format: Research Papers General format for papers written in APA style is covered in the first chapter of the Publication Manual (Call number here at Morrisville College Library: REF BF 76.7.P83
Reading 13 : Finite State Automata and Regular Expressions
CS/Math 24: Introduction to Discrete Mathematics Fall 25 Reading 3 : Finite State Automata and Regular Expressions Instructors: Beck Hasti, Gautam Prakriya In this reading we study a mathematical model
Parsing Technology and its role in Legacy Modernization. A Metaware White Paper
Parsing Technology and its role in Legacy Modernization A Metaware White Paper 1 INTRODUCTION In the two last decades there has been an explosion of interest in software tools that can automate key tasks
The Hexadecimal Number System and Memory Addressing
APPENDIX C The Hexadecimal Number System and Memory Addressing U nderstanding the number system and the coding system that computers use to store data and communicate with each other is fundamental to
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new
Unix Scripts and Job Scheduling
Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh [email protected] http://www.sis.pitt.edu/~spring Overview Shell Scripts
Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)
Cisco Networking Academy Program Curriculum Scope & Sequence Fundamentals of UNIX version 2.0 (July, 2002) Course Description: Fundamentals of UNIX teaches you how to use the UNIX operating system and
Eventia Log Parsing Editor 1.0 Administration Guide
Eventia Log Parsing Editor 1.0 Administration Guide Revised: November 28, 2007 In This Document Overview page 2 Installation and Supported Platforms page 4 Menus and Main Window page 5 Creating Parsing
1. The RSA algorithm In this chapter, we ll learn how the RSA algorithm works.
MATH 13150: Freshman Seminar Unit 18 1. The RSA algorithm In this chapter, we ll learn how the RSA algorithm works. 1.1. Bob and Alice. Suppose that Alice wants to send a message to Bob over the internet
Encoding Text with a Small Alphabet
Chapter 2 Encoding Text with a Small Alphabet Given the nature of the Internet, we can break the process of understanding how information is transmitted into two components. First, we have to figure out
Advanced Bash Scripting. Joshua Malone ([email protected])
Advanced Bash Scripting Joshua Malone ([email protected]) Why script in bash? You re probably already using it Great at managing external programs Powerful scripting language Portable and version-stable
A Programming Language for Mechanical Translation Victor H. Yngve, Massachusetts Institute of Technology, Cambridge, Massachusetts
[Mechanical Translation, vol.5, no.1, July 1958; pp. 25-41] A Programming Language for Mechanical Translation Victor H. Yngve, Massachusetts Institute of Technology, Cambridge, Massachusetts A notational
Introduction to Shell Programming
Introduction to Shell Programming what is shell programming? about cygwin review of basic UNIX TM pipelines of commands about shell scripts some new commands variables parameters and shift command substitution
SAMPLE MATERIALS - DO NOT USE FOR LIVE TEST ADMINISTRATION. English grammar, punctuation and spelling
National curriculum tests Key stage 1 English grammar, punctuation and spelling Paper 2: questions pack Information on when the tests should be administered and instructions on opening the test packs will
Grade 4 Mathematics Patterns, Relations, and Functions: Lesson 1
Grade 4 Mathematics Patterns, Relations, and Functions: Lesson 1 Read aloud to the students the material that is printed in boldface type inside the boxes. Information in regular type inside the boxes
Learn Unifon Spell the Sounds!
Learn Unifon Spell the Sounds! By Kenneth C. Anderson Are you tired of feeling stupid because you spell words wrong all the time? Me, too. But I m doing something about it. English is an easy language
Using SVN to Manage Source RTL
Using SVN to Manage Source RTL CS250 Tutorial 1 (Version 083010a) August 30, 2010 Yunsup Lee In this tutorial you will gain experience using the Subversion (SVN) to manage your source RTL and code. You
Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)
Unit- I Introduction to c Language: C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating
Home Reading Program Infant through Preschool
Home Reading Program Infant through Preschool Alphabet Flashcards Upper and Lower-Case Letters Why teach the alphabet or sing the ABC Song? Music helps the infant ear to develop like nothing else does!
Selecting Features by Attributes in ArcGIS Using the Query Builder
Helping Organizations Succeed with GIS www.junipergis.com Bend, OR 97702 Ph: 541-389-6225 Fax: 541-389-6263 Selecting Features by Attributes in ArcGIS Using the Query Builder ESRI provides an easy to use
ACCELL/SQL: Creating Reports with RPT Report Writer
ACCELL/SQL: Creating Reports with RPT Report Writer 2 3 4 5 6 7 8 This manual, Creating Reports With RPT Report Writer, tells you how to develop an application report using Report Writer and gives complete
Database Applications Microsoft Access
Database Applications Microsoft Access Lesson 4 Working with Queries Difference Between Queries and Filters Filters are temporary Filters are placed on data in a single table Queries are saved as individual
Lab III: Unix File Recovery Data Unit Level
New Mexico Tech Digital Forensics Fall 2006 Lab III: Unix File Recovery Data Unit Level Objectives - Review of unallocated space and extracting with dls - Interpret the file system information from the
Regular Expressions Overview Suppose you needed to find a specific IPv4 address in a bunch of files? This is easy to do; you just specify the IP
Regular Expressions Overview Suppose you needed to find a specific IPv4 address in a bunch of files? This is easy to do; you just specify the IP address as a string and do a search. But, what if you didn
5.1 Radical Notation and Rational Exponents
Section 5.1 Radical Notation and Rational Exponents 1 5.1 Radical Notation and Rational Exponents We now review how exponents can be used to describe not only powers (such as 5 2 and 2 3 ), but also roots
Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2
Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
Windows Script Host Fundamentals
1.fm Page 1 Tuesday, January 23, 2001 4:46 PM O N E Windows Script Host Fundamentals 1 The Windows Script Host, or WSH for short, is one of the most powerful and useful parts of the Windows operating system.
University of Hull Department of Computer Science. Wrestling with Python Week 01 Playing with Python
Introduction Welcome to our Python sessions. University of Hull Department of Computer Science Wrestling with Python Week 01 Playing with Python Vsn. 1.0 Rob Miles 2013 Please follow the instructions carefully.
Writing Control Structures
Writing Control Structures Copyright 2006, Oracle. All rights reserved. Oracle Database 10g: PL/SQL Fundamentals 5-1 Objectives After completing this lesson, you should be able to do the following: Identify
Python Loops and String Manipulation
WEEK TWO Python Loops and String Manipulation Last week, we showed you some basic Python programming and gave you some intriguing problems to solve. But it is hard to do anything really exciting until
Microsoft Access 3: Understanding and Creating Queries
Microsoft Access 3: Understanding and Creating Queries In Access Level 2, we learned how to perform basic data retrievals by using Search & Replace functions and Sort & Filter functions. For more complex
(Refer Slide Time: 2:03)
Control Engineering Prof. Madan Gopal Department of Electrical Engineering Indian Institute of Technology, Delhi Lecture - 11 Models of Industrial Control Devices and Systems (Contd.) Last time we were
Lecture 2 Mathcad Basics
Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority
AccXES Account Management Tool Administrator s Guide Version 10.0
AccXES Account Management Tool Administrator s Guide Version 10.0 701P41531 May 2004 Trademark Acknowledgments XEROX, AccXES, The Document Company, and the identifying product names and numbers herein
DTD Tutorial. About the tutorial. Tutorial
About the tutorial Tutorial Simply Easy Learning 2 About the tutorial DTD Tutorial XML Document Type Declaration commonly known as DTD is a way to describe precisely the XML language. DTDs check the validity
Creating trouble-free numbering in Microsoft Word
Creating trouble-free numbering in Microsoft Word This note shows you how to create trouble-free chapter, section and paragraph numbering, as well as bulleted and numbered lists that look the way you want
SAMPLE. Grammar, punctuation and spelling. Paper 2: short answer questions. English tests KEY STAGE LEVEL. Downloaded from satspapers.org.
En KEY STAGE 2 English tests *SAMPLE* LEVEL 6 SAMPLE Grammar, punctuation and spelling Paper 2: short answer questions First name Middle name Last name Date of birth Day Month Year School name DfE number
Creating A Simple Dictionary With Definitions
Creating A Simple Dictionary With Definitions The KAS Knowledge Acquisition System allows you to create new dictionaries with definitions from scratch or append information to existing dictionaries. The
A Lex Tutorial. Victor Eijkhout. July 2004. 1 Introduction. 2 Structure of a lex file
A Lex Tutorial Victor Eijkhout July 2004 1 Introduction The unix utility lex parses a file of characters. It uses regular expression matching; typically it is used to tokenize the contents of the file.
Unix the Bare Minimum
Unix the Bare Minimum Norman Matloff September 27, 2005 c 2001-2005, N.S. Matloff Contents 1 Purpose 2 2 Shells 2 3 Files and Directories 4 3.1 Creating Directories.......................................
Lab 4.4 Secret Messages: Indexing, Arrays, and Iteration
Lab 4.4 Secret Messages: Indexing, Arrays, and Iteration This JavaScript lab (the last of the series) focuses on indexing, arrays, and iteration, but it also provides another context for practicing with
Excel 2003 A Beginners Guide
Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on
Solving Rational Equations
Lesson M Lesson : Student Outcomes Students solve rational equations, monitoring for the creation of extraneous solutions. Lesson Notes In the preceding lessons, students learned to add, subtract, multiply,
Isaac and Rebekah. (Genesis 24; 25:19-34; 27:1-40) Spark Resources: Spark Story Bibles. Supplies: None. Spark Resources: Spark Bibles
BIBLE SKILLS & GAMES LEADER GUIDE Isaac and Rebekah (Genesis 24; 25:19-34; 27:1-40) Age-Level Overview Age-Level Overview Open the Bible Activate Faith Lower Elementary Workshop Focus: God s promises come
6.080/6.089 GITCS Feb 12, 2008. Lecture 3
6.8/6.89 GITCS Feb 2, 28 Lecturer: Scott Aaronson Lecture 3 Scribe: Adam Rogal Administrivia. Scribe notes The purpose of scribe notes is to transcribe our lectures. Although I have formal notes of my
Methods Used for Counting
COUNTING METHODS From our preliminary work in probability, we often found ourselves wondering how many different scenarios there were in a given situation. In the beginning of that chapter, we merely tried
Basic Components of an LP:
1 Linear Programming Optimization is an important and fascinating area of management science and operations research. It helps to do less work, but gain more. Linear programming (LP) is a central topic
Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl
First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End
1.4 Compound Inequalities
Section 1.4 Compound Inequalities 53 1.4 Compound Inequalities This section discusses a technique that is used to solve compound inequalities, which is a phrase that usually refers to a pair of inequalities
Playing with Numbers
PLAYING WITH NUMBERS 249 Playing with Numbers CHAPTER 16 16.1 Introduction You have studied various types of numbers such as natural numbers, whole numbers, integers and rational numbers. You have also
Basic C Shell. [email protected]. 11th August 2003
Basic C Shell [email protected] 11th August 2003 This is a very brief guide to how to use cshell to speed up your use of Unix commands. Googling C Shell Tutorial can lead you to more detailed information.
Using SQL Queries in Crystal Reports
PPENDIX Using SQL Queries in Crystal Reports In this appendix Review of SQL Commands PDF 924 n Introduction to SQL PDF 924 PDF 924 ppendix Using SQL Queries in Crystal Reports The SQL Commands feature
ENGLISH PLACEMENT TEST
ENGLISH PLACEMENT TEST NAME: Look at these examples. The correct answers are underlined. a) In warm climates people like / likes / are liking sitting outside in the sun. b) If it is very hot, they sit
EARLY CHILDHOOD LITERACY AND NUMERACY BUILDING GOOD PRACTICE MARILYN FLEER AND BRIDIE RABAN
EARLY CHILDHOOD LITERACY AND NUMERACY BUILDING GOOD PRACTICE MARILYN FLEER AND BRIDIE RABAN EARLY CHILDHOOD LITERACY AND NUMERACY CARDS This set of cards has been developed to help you support young children
Using PRX to Search and Replace Patterns in Text Strings
Paper CC06 Using PRX to Search and Replace Patterns in Text Strings Wenyu Hu, Merck Research Labs, Merck & Co., Inc., Upper Gwynedd, PA Liping Zhang, Merck Research Labs, Merck & Co., Inc., Upper Gwynedd,
Custom Linetypes (.LIN)
Custom Linetypes (.LIN) AutoCAD provides the ability to create custom linetypes or to adjust the linetypes supplied with the system during installation. Linetypes in AutoCAD can be classified into two
Voice Mail User s Guide (FACILITY NOT AVAILABLE IN RESIDENCES)
SECTION ONE - INTRODUCTION...2 SECTION TWO - GETTING STARTED...2 2.1 Setting up Your Mailbox...2 2.1.1 New Mailbox...2 2.2 Getting Voice Mail to Take Your Calls...3 2.3 Listen to the Messages...3 2.4 Next
Computational Mathematics with Python
Boolean Arrays Classes Computational Mathematics with Python Basics Olivier Verdier and Claus Führer 2009-03-24 Olivier Verdier and Claus Führer Computational Mathematics with Python 2009-03-24 1 / 40
