cover of computer careers book

 

 

 

 

 

 

 

Discover the 8 Reasons Why Now is the Best Time Ever to Change to a Computer Info Tech Career

Regular Expressions for Not Yet Techies

"Computer Careers: Using These Cross-Language Programming Tools for Manipulating Data and Text"

by Richard Stooker, President Info Ring Press and author of Secrets of Changing to a Computer Career

 

The regular expressions are tools for manipulating text and data by programming languages. They are good at describing and parsing text. They are sort of a mini-language that are used by many other languages and text editors. Use regular expressions to work with documents, email, log files and CGI scripts.

You can use regular expressions to describe a chunk of text. They can help you verify form input (you'd be surprised to learn what tricks people try to play with online web forms -- if you're not careful, a hacker can crash a server or access a database through such forms.) They allow you to master your data.

For instance, a writer could use a script to change the name of their novel's main character from Mortimer to Fancy Dan. Yes, word processors can do that within a file, but novels are so long that authors usually divide them up into many separate files, and without regular expressions he'd have to open all 300 chapters and do an individual Search and Replace All process on each of all 300 files. That'd be a boring day's work.

You find regular expressions, though with variations, in such languages as grep, Perl, Elisp, Tcl, awk and Python -- and Java has a library for them

You can also find regular expressions in such editors as Emacs, vi, Nissus Writer and Brief and in such programming environments as Delphi and Visual C++. And in such tools as lex, Expect and sed. They are often provided in programs as a power user option.

They actually date back to the early 1940s when two neurophysiologists -- Warren McCulloch and Walter Pitts -- invented the concept as their way of modeling how the nervous system works at the neuron level. Stephen Kine applied regular expressions to algebra a few years later and they became a part of algebra in the 1950s and 60s.

In 1968 Ken Thompson first documented work with applying regular expressions to text parsing, and eventually developed the editor qed which led to the Unix editor ed.

There are two types of characters in regular expressions:

metacharacters -- such as * wildcard

literals

Next: Ruby programming language

Use Your New Computer Career as a Stepping Stone to Even Greater Success

Send off for your free 7-part Techie Plus eCourse now. So that you can learn:

  • The 7 most important skills to even greater business achievement -- not to mention wealth and (maybe) fame
  • Why techies are expendable in bad times and how to protect yourself from them
  • Why the world's richest computer programmer has not written any code in ages
  • How one ex-engineer now makes $500,000 a year
  • The abilities most techies don't even realize they don't have -- which confines their success to their technical abilities
  • Why techies are expendable in bad times and how to protect yourself from them

It's fast and easy. You will receive the first part in your email box within minutes.

I respect your privacy. I will never sell, rent or trade your email address.

After you subscribe, the form will redirect you to a thank you page.

Subscribe now to free 7 part Techie Plus eCourse
Your Name:
Your Email:

Check Out Email Aces Today!
- Powered By Email Aces -

Thank you!

Rick Stooker

Permission is granted to reprint the above article in an ezine or on a website as long as it is reprinted in full, with no changes, with full credit and with this contact information and link included at the bottom. All other rights reserved.

Copyright 2007 by Info Ring Press

All Rights Reserved.

Computer Careers (Home)   Sitemap   Contact   Privacy  

Info Ring Press
Richard Stooker
PO Box 617
130-G Ballwin Manor Dr
Ballwin, MO 63011
(636) 394-2052
rick@inforingpress.com