TWiT Throwback (Audio)

Coding 101 23: Perl: RegEx Search and Replace


Listen Later

The Code for today's show is available at our: Github

Ivory Tower

Let's talk about Regular Expressions

  • In the previous episode, 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 search 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.
        • Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

          Guest: Patrick Delahanty

          Get in Touch With Us!
          • Subscribe and get Coding 101 automatically at TWiT.tv!
          • Follow PadreSJ and Snubs on Twitter
          • Download or subscribe to this show at https://twit.tv/shows/coding-101.

            Bandwidth for Coding 101 is provided by CacheFly.

            Sponsors:

            • squarespace.com offer code: CODING
            • hover.com offer code: C101
            • ...more
              View all episodesView all episodes
              Download on the App Store

              TWiT Throwback (Audio)By TWiT

              • 4
              • 4
              • 4
              • 4
              • 4

              4

              4 ratings


              More shows like TWiT Throwback (Audio)

              View all
              Total Leo (Audio) by TWiT

              Total Leo (Audio)

              202 Listeners

              TWiT News (Audio) by TWiT

              TWiT News (Audio)

              78 Listeners

              All TWiT.tv Shows (Audio) by TWiT

              All TWiT.tv Shows (Audio)

              355 Listeners

              TWiT Events (Audio) by TWiT

              TWiT Events (Audio)

              8 Listeners

              Total Mikah (Audio) by TWiT

              Total Mikah (Audio)

              3 Listeners

              Untitled Linux Show (Audio) by TWiT

              Untitled Linux Show (Audio)

              7 Listeners

              Host-Read Ads (Audio) by TWiT

              Host-Read Ads (Audio)

              3 Listeners