Finding and replacing using backreferences


show more Finding and replacing using backreferences provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions show less
please wait ...

Finding and replacing using backreferences

In this movie, I want us to take a look at Find and Replace using backreferences, because this is a very powerful use of backreferences, and of regular expressions in general. Now, in order to look at Find and Replace, we won't be able to use the JavaScript RegexPal we have been using, because all it does is simply tell us, did we find a match or not? It doesn't do Find and Replace. In order to do Find and Replace, we'll either need a programming language, or we'll need a text editor, and that's what I am going to be using. Now, if you have a text editor you can go ahead and use it, or you can install one like mine, or you can just simply follow along for this one movie to get the idea.

The text editor I'll be using is TextMate for Macintosh. If you're on Windows, the E Text Editor is a very similar product. So the file that I am going to be demonstrating with is in the exercise files, and its called us_presidents.csv. CSV stands for comma separated values, and...

Finding and replacing using backreferences
Video duration: 7m 16s 5h 36m Intermediate

Viewers:

Finding and replacing using backreferences provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Using Regular Expressions

Subject:
Developer
Software:
Regular Expressions
Author:
please wait ...