http://techsupport.uafs.edu
 Technology Support   Common Questions   Guides   System Status
       
   

Need to report a problem??   
   
           
   
 
A funny computer related comic.

Regular expressions (REs), unlike simple queries, allow you to search for text which matches a particular pattern.

REs are similar to (but more poweful than) the "wildcards" used in the command-line interfaces found in operating systems such as Unix and MS-DOS. REs are used by sophisticated search engines, as well as by many Unix-based languages and tools ( e.g., awk, grep, lex, perl, and sed ).

Examples

compan(y|ies) Search for company , companies
(peter|paul) Search for peter , paul
bug* Search for bug , bugs , bugfix
[Bb]ag Search for Bag , bag
b[aiueo]g Second letter is a vowel. Matches bag , bug , big
b.g Second letter is any letter. Matches also b&g
[a-zA-Z] Matches any one letter (not a number and a symbol)
[^0-9a-zA-Z] Matches any symbol (not a number or a letter)
[A-Z][A-Z]* Matches one or more uppercase letters
[0-9][0-9][0-9]-[0-9][0-9]-
[0-9][0-9][0-9][0-9]
US social security number, e.g. 123-45-6789


 
   
     

This page is copyright 2001-2010 by the University of Arkansas - Fort Smith Technology Support.
The information on this page is only meant for the use of UA Fort Smith's employees and students. UA Fort Smith is not responsible for inappropriate use of this material.

Privacy PolicyElectronic Communications Policy

- = Admin = -