Coding 101 23: Perl: RegEx Search and Replace

Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

Guest: Patrick Delahanty

The Code for today’s show is availible at our: Github

Ivory Tower

Let’s talk about Regular Expressions
* In episode 2, we brushed past Regular Expressions … OUR BAD

Defn: At its simplest, A “Regular Expression” or “Regex” is a type of pattern-matching that can be used in searches or find and replace operations.
* In a Regex, each character of the string is its own metacharacter that can be combined with other metacharacters to identify patterns and even context
* Regular Expressions are used in most modern languages, and figure prominently into modern seach engines.

Perl is the standard-bearer for Regular Expressions in .NET, Java, Ruby and others

WHAT DOES THIS ALL MEAN?!?!?!
* Quite simply… REGEX allows you to find, match and replace patters within any data set.
* It lets you search NOT just complete strings, but parts of strings.
– You can then replace those strings, or parts of strings with other strings.

They’re useful to parse files and provide a powerful search and replace tool.

Get in Touch With Us!

* Subscribe and get Coding 101 automatically at TWiT.tv!
* Follow PadreSJ and Snubs on Twitter.
* Watch the show live and join the chatroom every Thursday at 1:30pm PST.
* Email us at Padre@twit.tv and Shannon@twit.tv.
* Join our Google+ Community!

Comments

onegreat703 says:

Shannon is so beautiful!

Chris Punches says:

You can skip to 5:38 to keep irrelevant nonsense from wasting 338 seconds of your life.

installtekz says:

Shannon.. I am in love

El suisse says:

Programming in windows, editing in notepad???
wtf!!!

Diane Conrardy says:

Just watched a tutorial today on RegEx…these are mastered over time, and with a lot of practice!

Brian Moran says:

One long commercial with about 8 minutes of content sprinkled in.

LUTCHMAN Nicolas says:

the s//gi its just like sed in linux

Miguel Sensacion says:

Really great stuff in this episode.

Thanks !

Spykedjadedragon says:

I think the pacing is great for a beginner with clear explanations… Maybe try the examples as they do it to solidify the concepts?

Elgs Chen says:

Too much craps in this episode.

Write a comment

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles   Show Cars   Motorbikes   Scooters   Bicycles   Rims & Tires   Luxury BoatsFashion   Sunglasses   Luxury Watches   Luxury Purses   Jeans Wear   High Heels   Kinis Swimwear   Perfumes   Jewellery   Cosmetics   Shaving Helpers   Fashion Hats   Modeling TipsFooding   Chef Club   Fooding Helpers   Coktails & LiquorsSports   Sport Shoes   Fitness & Detox   Golf Gear   Racquets   Hiking & Trek Gear   Diving Equipment   Ski Gear   Snowboards   Surf Boards   Rollers & SkatesEntertainment   DIY Guides   Zik Instruments   Published Books   Music Albums   Cine Movies   Trading Helpers   Make Money   Fishing Equipment   Paintball Supplies   Trading Card Games   Telescopes   Knives   Vapes   GameplaysHigh Tech   Flat Screens   Tech Devices   Camera Lenses   Audio HiFi   Printers   USB Devices   PC Hardware   Network Gear   Cloud Servers   Software Helpers   Programmer Helpers   Mobile Apps   Hearing AidsHome   Home Furniture   Home Appliances   Tools Workshop   Beddings   Floor Layings   Barbecues   Aquarium Gear   Safe Boxes   Office Supplies   Security Locks   Cleaning ProductsKids   Baby Strollers   Child Car Seats   Remote ControlledTravel   Luggages & Bags   Airlines Seats   Hotel Rooms   Fun Trips   Cruise Ships   Mexico Tours