SlideShare a Scribd company logo
Regular Expressions
for Regular Joes
(and SEOs)
What are regular expressions?
• A regular expression (sometimes referred to as
regex or regexp) is basically find-and-replace
on steroids, an advanced system of matching
text patterns.
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 2
Most Common Example: Google Analytics
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 3
• Using “pipes” to exclude pages with extraneous
symbols attached to the URL, like UTM tracking
parameters.
Where can I use regular expressions?
• Many text editors
– Notepad++ is an awesome one for Windows
• SEO Tools for Excel add-on
– http://nielsbosma.se/projects/seotools/
• Google Docs
– =regexextract() function
– =regexmatch() function
– =regexreplace() function
• Google Analytics
• Screaming Frog
• DeepCrawl
• .htaccess
– RewriteCond
– RewriteRule
• Programming Languages
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 4

Recommended for you

Why Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody HardWhy Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody Hard

The document discusses the challenges of scaling great content. It states that while scaling basic content is easy, scaling high-quality content is difficult. It recommends systematizing, standardizing, and streamlining content production processes to help overcome these challenges. This includes outlining processes, reviewing drafts, editing, and publishing content according to standardized steps.

Martin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry - SEO strategy c/o England manager Gareth SouthgateMartin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry - SEO strategy c/o England manager Gareth Southgate

This document outlines an SEO strategy inspired by Gareth Southgate's plan to improve the England football team. It presents a three step target setting framework: 1) Be competitive in 6-12 months, 2) achieve tournament success in 1-2 years, and 3) be number one in 2-3 years. Key metrics such as visibility, site health, traffic, and time on page are identified and targets are set for each step. Accompanying tasks are mapped to the metrics and timeline to execute the plan, such as link campaigns, technical fixes, and content updates. The strategy aims to provide structure through measurable goals and accountability.

seomarketing strategysearch engine optimization
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon

Avoid the most common SEO issues, challenges and mistakes by going through this presentation with tips, criteria and tools to use independently of your online store Web platform, and grow your organic search results

ecommerceecommerce seoseo for ecommerce
RegEx Basics
Each one of these you learn, the more helpful it is.
You don’t have to learn all of them.
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 5
Anchors
• “Anchors” match position in text rather than text
itself:
– ^ (carat) will match the beginning of a line
– $ (dollar sign) will match the end of a line
Example: word word word word
• ^word  will result in “word word word word”
• word$  will result in “word word word word”
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 6
Character Classes
• [ starts a character class
• ] ends a character class
– Any of the characters within [ ] will be matched
Note: ranges like [G-V] (letters g though v) or [1-10] (number 1 through
10) also work.
Example: hnaeyesdtlaeck
• [nedl]  will result in “hnaeyesdtlaeck”
Example: Do you do SEO or SEM?
• SE[OM]  will result in “Do you do SEO or SEM?”
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 7
Miscellaneous Special Characters
• | (pipe) means OR
Example: this or that?
– this|that will result in “this or that?”
• . (period) represents any character (wildcard)
Example: Excuse my French; Detect profanity like
shit, sh#t, or sh!t.
– sh.t will result in “Detect profanity like shit, sh#t, or sh!t.”
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 8

Recommended for you

chima mmeje brighton seo speaker slide april22
chima mmeje   brighton seo speaker slide april22chima mmeje   brighton seo speaker slide april22
chima mmeje brighton seo speaker slide april22

In this presentation, I'll walk you through how a topic cluster can help you build authority as well as the process for conducting research when building a comprehensive topic cluster

topic clustercontent strategycontent marketing
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...

This document contains the transcript of a presentation about incorporating machine learning into internal linking audits. The presentation discusses analyzing a website's internal link structure using machine learning techniques like topic modeling and fuzzy matching to identify opportunities for new or improved internal links. It provides a 6-step process for discovery, analysis, clustering content by topic, identifying link opportunities, prioritizing where to link, and measuring the impact of implemented links. The goal is incremental improvements to internal linking that can boost SEO over time through better content organization and discoverability.

seomachine learningmarketing
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )

SEO for large sites is completely different than SEO for smaller sites. Large sites have a strong (yet often overlooked!) lever that can boost rankings: internal linking! However, it can be challenging to understand which pages have the highest PageRank, so that you can tweak them to serve important pages better. That can only be determined when you combine internal and external PageRank. Join Kevin Indig as he presents an innovative approach that merges data from crawls, log files, and backlinks to solve the puzzle! You’ll learn how to: · Combine crawls, log files, and backlinks to find weaknesses in your internal linking structure. · Analyze the impact of tweaking internal linking before you deploy the changes. · Understand how to tweak internal linking at scale.

seomarketingdigital marketing
Escaping Characters
There are many characters in regular expressions which
have special meanings, so if you wish to find the literal
characters they must be “escaped” with a backslash
preceding it.
Example: I want to find the period.
– .  I want to find the period.
– If I used just a period without escaping with a backslash:
.  will result in “I want to find the period.”
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 9
Quantifiers
• ? (question mark) means optional. It matches 0 or 1 of the
previous character, essentially making it optional.
Example: is the url http or https?
– https?  will result in “is the url http or https?”
• * (asterisk) means zero or more. It will find 0 or more occurrences
of the previous character.
Example #1: What’s that photo website again? Is it Flickr, Flicker, or Flickeeer?
– Flicke*r  will result in “What’s that photo website again? Is it Flickr, Flicker, or Flickeeer?”
Example #2: hlp help heelp heeeeeeeelp
– he*lp  will result in “hlp help heelp heeeeeeeelp”
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 10
Quantifiers - Continued
• + (plus) means one or more. It will find 1 or more
occurrences of the previous character.
Example #1: hlp help heelp heeeeeeeelp
– he+lp  will result in “hlp help heelp heeeeeeeelp”
Example #2: hlp help heelp heeeeeeeelp hellllllllp
• h.+lp  will result in “hlp help heelp heeeeeeeelp
hellllllllp”
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 11
Understanding Differences Between Quantifiers
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 12
Animated GIF Example

Recommended for you

The Big SEO Migration - Learnings from a first time hiker
The Big SEO Migration - Learnings from a first time hiker The Big SEO Migration - Learnings from a first time hiker
The Big SEO Migration - Learnings from a first time hiker

In this presentation Rene will cover the highs and lows of managing a large Ecommerce website migration for the first time. Migrations can be overwhelming so in this talk Rene will cover how to tackle the SEO essentials, stakeholder and developer management as well as how to to gain key learnings. Of course, redirects, how to change the URL structure for the better and server-side rendering will all feature. This is a high level inspirational talk centered around the highs and lows of the hike to the migration finish line with hopefully some key take-aways along the way.

seomigrationbrighton seo
Beth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptxBeth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptx

In this talk, Beth will give an introduction of what schema is, where it sits within a structured data framework, and its use cases. Then she’ll move on to the types that can be used or are no longer recognised by search engines. This will be followed by a hands-on discussion of how to audit a website, how to write the relevant code, and ways to implement and test.

seoschemastructured data
How To EAT Links.pptx
How To EAT Links.pptxHow To EAT Links.pptx
How To EAT Links.pptx

This document discusses how to build links that satisfy Google's E.A.T. (Expertise, Authoritativeness, Trustworthiness) guidelines. It introduces the concepts of E.A.T. and explains why links that increase the linked page's perceived quality are more valuable. Specific linking strategies are presented such as guest blogging, Wikipedia links, and Google My Business citations. The key takeaway is that links following E.A.T. principles help pages by boosting their perceived quality in search engine algorithms.

brightonseoseo
Quantifiers - Continued
• { } will match a certain quantity of previous
characters. You can also specify a range, like “1 to
3” or “3 or more” if you include a , (comma) inside
the brackets.
Example #1: buz buzz buzzz buzzzz buzzzzz
– buz{3}  will result in “buz buzz buzzz buzzzz buzzzzz”
Note: {3} reads “exactly 3} in plain english.
– buz{2,4}  will result in “buz buzz buzzz buzzzz buzzzzz”
Note: {2,4} reads “2 to 4” in plain english.
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 13
Groups
• Groups are encapsulated in parenthesis ( )
Example: hahaha haha ha haha ha!
– (ha)+  will render “hahaha haha ha haha ha!”
( )COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 14
Capture Groups
• Groups can also be easily captured as variables that
can be repeated back:
– $1 would display the contents of the first group, $2 would
display the contents of the second group and so on.
Example: hello I am paul
– hello I am (.+)  used with $1  will capture “paul”
• To disable the capturing of groups we use (?:), so that they
can be used solely for the purpose of grouping patterns together.
So with the above example, (?:.+) will not capture anything
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 15
Lookarounds
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 16
• Positive Lookaheads will match a group after the main pattern
without actually including it in the result. The expression is
(?=)
Example: 1in 250px 2in 3em 40px
– [0-9]+(?=px)  will result in “1in 250px 2in 3em 40px”
Everything WITH “px”
• A Negative Lookahead is used to specify a group that won’t
be matched after the main pattern. The expression is (?!)
Example: 1in 250px 2in 3em 40px
– [0-9]+(?!em)  will result in “1in 250px 2in 3em 40px”
Everything BUT “em”

Recommended for you

Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...

Patrick's Brighton SEO talk on using machine learning for technical SEO and how to automate many things.

seotechnical seomachine learning
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...

This document discusses SEO testing and experimentation. It provides examples of types of SEO tests that could be done, such as pre-post testing, A/B testing, and combining different measurement approaches. Specific cases are also mentioned, like testing the impact of internal linking, HTML sitemaps, and changes to page titles and meta descriptions. The document emphasizes that SEO testing takes work to set up properly and find meaningful results, but it is important for identifying what strategies are truly effective.

brightonseoseoexperimentation
How to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performance

Understanding and diagnosing indexation issues is vital to SEO success, but until very recently, getting good data was nearly impossible. Google’s newly-introduced URL Inspection API opens a new world of possibilities for tracking indexation. In this talk, Simon explores how to leverage this data to monitor status, spot changes, and catch issues in realtime — no coding required!

seoseo software
RegEx in Practice
Real Use Cases
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 17
Problem #1
I want to take a list of >2,000 Mashable.com URLs,
exported from BuzzSumo.com and segment the
<titles> into different segments (list posts, title as a
question, etc.) and see which ones received a
greater number of social shares.
What is the fastest way of doing this?
Hint:
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 18
Solution #1: SEO Tools for Excel Add-on w/ RegEx
• Is the post title a question?
– =RegexpIsMatch(A2,"?$")
• Is the post a listacle/list post?
– =RegexpIsMatch(A2,"^[0-9]*s|^[0-9],[0-9]*s")
• Extract publishing year from URL
– =RegexpFind(D2,"https?://(?:www.)?mashable.com/([0-
9]{4})/.+","$1")
• Presence of a year in the title
– =IFERROR(RegexpFind(A40,"([0-9]{4})","$1"),“N/A")
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 19
Nice! Took < 1 Minute.
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 20

Recommended for you

PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...

The document discusses Google's ML APIs versus OpenAI's APIs and their applications for SEO and digital marketing tasks. It provides examples of how natural language processing APIs from Google and OpenAI can be used for tasks like text analysis, sentiment analysis, document classification, translation and content transformation. While both Google and OpenAI APIs are useful, the document recommends choosing the right API for each specific task based on its capabilities and limitations in order to get the best results.

seomachine learningdata science
Google Sheets For SEO - Tom Pool - London SEO Meetup XL
Google Sheets For SEO - Tom Pool - London SEO Meetup XLGoogle Sheets For SEO - Tom Pool - London SEO Meetup XL
Google Sheets For SEO - Tom Pool - London SEO Meetup XL

First delivered at London SEO Meetup XL on May 4th, 2022. This talk focuses on a number of different tips and tricks that can be used to help improve the overall analysis of data within Google Sheets. A number of formulae are covered within this talk, including: REGEXMATCH & REGEXREPLACE TRANSLATE COUNTIF VLOOKUP INDEX MATCH IFNA The talk finally touches on the usage of the =QUERY formula, and how it can aid in a number of different situations. An example of creating a top ten dashboard is provided. A sample Google Spreadsheet with all formulae discussed can be seen here: https://docs.google.com/spreadsheets/d/1vMZIh6NWm8gRwIP-SkTP0N6BWEpYmFFge7FBR4Wqqtg/edit#gid=0

seospreadsheetsexcel
[BrightonSEO October 2022] On-page SEO: from intention to conversion
[BrightonSEO October 2022] On-page SEO: from intention to conversion[BrightonSEO October 2022] On-page SEO: from intention to conversion
[BrightonSEO October 2022] On-page SEO: from intention to conversion

In this talk from BrightonSEO October 2022 you will learn how to use the Conversion Index, Topical Authority and the Skyscraper Technique to really optimise for the user.

seosearch engine optimizationsearch engine optimisation
Problem #2
• There are hundreds of pages with <span> tags
that should be rendered as <h2>. Some have
class and/or id attributes and some don’t. I want
to grab the contents (only) of these span tags for
a client.
What is the fastest way?
…RegEx!
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 21
Solution #2: SEO Tools for Excel Add-on w/ RegEx
• For a list of URL in Excel, and again with the SEO
Tool for Excel add-on, use a regular expression
like this:
– =RegexpFindOnUrl(D3,"<span(?:.+)?>(.+)</span>",1)
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 22
Problem #3:
• I want to grab the full description from a long list of
YouTube videos. We can grab it from the meta
description, but it might be an incomplete
description that is truncated, so we need to grab
the actual page text.
What’s the fastest way?
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 23
…Probably XPath, but we can also use RegEx 
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 24

Recommended for you

The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDXThe most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX

The document discusses common mistakes and issues that can negatively impact SEO processes and outcomes. It recommends establishing a quality assurance framework to avoid execution errors from a lack of stakeholder understanding. This includes educating teams, setting guidelines, implementing validation workflows before and after changes, and monitoring metrics to catch issues early. Regular communication across teams and aligning SEO goals with business goals can help gain support and resources to avoid common challenges.

seosearch engine optimizationseo project management
The Full Scoop on Google's Title Rewrites
The Full Scoop on Google's Title RewritesThe Full Scoop on Google's Title Rewrites
The Full Scoop on Google's Title Rewrites

How often is Google rewriting your title tags and creating a custom title link on the SERP? Moreover, why is Google not relying on your title tags anymore for the title on the SERP? Dive in with this look at Google's title rewrites!

seodigital marketing
Export all the data! Rapporti avanzati per SEO e PPC
Export all the data! Rapporti avanzati per SEO e PPCExport all the data! Rapporti avanzati per SEO e PPC
Export all the data! Rapporti avanzati per SEO e PPC

Slide del mio intervento al Search Marketing Connect 2016

reportseoppc
Solution #3: SEO Tools for Excel Add-on
• For a list of YouTube video URLs in Excel, use the
SEO Tools for Excel Add-on with the following
regular expression:
– =RegexpFindOnUrl(A1,"<p id=.eow-
description.s?>(.+)</p>",1)
Please note, that because the HTML utilized a double-
quote, you have to use another character in its place so as
not to break Excel, like the period, to represent ANY
character.
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 25
Problem #4
• I want to quickly change a long list of keywords
into the exact match format with the keyword
surrounded by brackets, [ ].
What’s the fastest way?
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 26
Solution #4: Notepad++ Example
1. Copy a column of keywords
from Excel into Notepad++
2. Control + F and switch to the
“Replace” tab.
3. Switch the “Search Mode” to
“Regular Expression”
4. Enter ^ in the “Find what” field
and [ in the “Replace with” field.
5. Hit the “Replace All” button.
6. Then, enter $ in the “Find what”
field and ] in the “Replace with”
field.
7. Again, hit the “Replace All”
button.
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 27
Problem #5
• I want to identify which keywords from Google
Webmaster Tools is Branded/Non-
Branded, along with misspellings, from our SQL
database in Spotfire.
What’s the fastest way?
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 28

Recommended for you

Getting the right mix of digital analytics tracking, processes and tools
Getting the right mix of digital analytics tracking, processes and toolsGetting the right mix of digital analytics tracking, processes and tools
Getting the right mix of digital analytics tracking, processes and tools

Here is my talk held at the Digital & Web Analytics Summit, London, May 2015. It covers the base level tools and processes you need to get the best out of your data, how to produce actionable insights that will speed up your velocity to change.. http://web.archive.org/web/20150709213941/theinnovationenterprise.com/summits/digital-web-analytics-summit-london-2015/speakers/9549 http://web.archive.org/web/20150507214540/http://theinnovationenterprise.com:80/summits/digital-web-analytics-summit-london-2015/schedule

google analyticsdigita and web analytics summit#datauk
Measuring Content Performance - Jon Hibbitt
Measuring Content Performance - Jon HibbittMeasuring Content Performance - Jon Hibbitt
Measuring Content Performance - Jon Hibbitt

Earlier this year Jon Hibbitt, SiteVisibility's Technical SEO Analyst spoke to the Brighton and Hove chamber of commerce about content marketing and how you can measure your contents performance.

content marketingcontentcontent reporting
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...

La Directora Ejecutiva de Social Media Fidelity Management habló sobre los usos avazandos del Social Intelligence en The Inbounder World Tour Madrid, marzo 2017.

the inbounder world toursocial intelligence
A Solution: Calculated Column with ~= Operator
• Create a calculated column with an expression
like the below:
If([keyword]~="unstopable|unstopables|unstoppable|unstoppables|inst
opable|instopabales|[ui]nstop[a-z]+?b[a-z]+?s?|(scent booster)|(scent
boosters)",true,false)
– This should find spellings/mis-spellings of Downy Unstopables
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 29
Other Places We Might Use RegEx
Google Analytics supports regular expressions:
– When creating filters
– When setting up goals
– When defining goal funnel steps
– When defining advanced segments
– When using report filters
– When using filters in multichannel reporting
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 30
h/t Annie Cushing
Other Places We Might Use RegEx
.htaccess
– Redirect a set of URLs matching a certain pattern to a new URL
pattern:
Example:
RewriteRule ^/dir/index.php?id=(0-9+).htm$ file-$1 [L]
Screaming Frog
– URL Rewriting: RegEx Replace
– Spider Include/Exclude URLs
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 31
Other Places We Might Use RegEx
Deepcrawl
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 32

Recommended for you

Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...

CEO y Fundador de Adinton nos habló sobre Attribution Modeling en The Inbounder World Tour Madrid, marzo 2017.

the inbounder world tourattribution modelingthe inbounder
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...

El fundador y director de la consultora de marketing online Human Level Communications nos habló sobre SEO internacional en escenarios complejos.

the inbounder world tourseothe inbounder
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...

La Consultora SEO independiente nos habló sobre las mejores herramientas y prácticas para diagnosticar y solucionar problemas SEO técnicos en The Inbounder World Tour Madrid, marzo 2017.

seothe inbounder world tourthe inbounder
Resources
Helpful tool for testing RegEx and gives a good
breakdown of your patterns:
• http://www.regexr.com/
A handy cheat sheet to print and put on your desk:
• http://www.cheatography.com/davechild/cheat-
sheets/regular-expressions/pdf/
SEO Tools for Excel Add-on
• http://nielsbosma.se/projects/seotools/
Notepad++
• http://notepad-plus-plus.org/
COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 33
Thank You!
Paul Shapiro
paul.shapiro@catalystsearchmarketing.com
@fighto
http://blog.paulshapiro.com

More Related Content

What's hot

Brighton SEO April 2022 - Automate the technical SEO stuff
Brighton SEO April 2022 - Automate the technical SEO stuffBrighton SEO April 2022 - Automate the technical SEO stuff
Brighton SEO April 2022 - Automate the technical SEO stuff
Michael Van Den Reym
 
Kleecks - AI-Martech as a game changer-DEF.pdf
Kleecks - AI-Martech as a game changer-DEF.pdfKleecks - AI-Martech as a game changer-DEF.pdf
Kleecks - AI-Martech as a game changer-DEF.pdf
Kleecks
 
How to automate a long tail SEO strategy for ecommerce
How to automate a long tail SEO strategy for ecommerceHow to automate a long tail SEO strategy for ecommerce
How to automate a long tail SEO strategy for ecommerce
PierreOlivierDanhaiv1
 
Why Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody HardWhy Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody Hard
JoshuaHardwickAhrefs
 
Martin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry - SEO strategy c/o England manager Gareth SouthgateMartin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry
 
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
Aleyda Solís
 
chima mmeje brighton seo speaker slide april22
chima mmeje   brighton seo speaker slide april22chima mmeje   brighton seo speaker slide april22
chima mmeje brighton seo speaker slide april22
chima mmeje
 
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
LazarinaStoyanova
 
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
Kevin Indig
 
The Big SEO Migration - Learnings from a first time hiker
The Big SEO Migration - Learnings from a first time hiker The Big SEO Migration - Learnings from a first time hiker
The Big SEO Migration - Learnings from a first time hiker
ReneHarris7
 
Beth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptxBeth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptx
BethBarnham1
 
How To EAT Links.pptx
How To EAT Links.pptxHow To EAT Links.pptx
How To EAT Links.pptx
Dixon Jones
 
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Ahrefs
 
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
Martijn Scheijbeler
 
How to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performance
Simon Lesser
 
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
LazarinaStoyanova
 
Google Sheets For SEO - Tom Pool - London SEO Meetup XL
Google Sheets For SEO - Tom Pool - London SEO Meetup XLGoogle Sheets For SEO - Tom Pool - London SEO Meetup XL
Google Sheets For SEO - Tom Pool - London SEO Meetup XL
Tom Pool
 
[BrightonSEO October 2022] On-page SEO: from intention to conversion
[BrightonSEO October 2022] On-page SEO: from intention to conversion[BrightonSEO October 2022] On-page SEO: from intention to conversion
[BrightonSEO October 2022] On-page SEO: from intention to conversion
Felipe Bazon
 
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDXThe most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
Aleyda Solís
 
The Full Scoop on Google's Title Rewrites
The Full Scoop on Google's Title RewritesThe Full Scoop on Google's Title Rewrites
The Full Scoop on Google's Title Rewrites
Mordy Oberstein
 

What's hot (20)

Brighton SEO April 2022 - Automate the technical SEO stuff
Brighton SEO April 2022 - Automate the technical SEO stuffBrighton SEO April 2022 - Automate the technical SEO stuff
Brighton SEO April 2022 - Automate the technical SEO stuff
 
Kleecks - AI-Martech as a game changer-DEF.pdf
Kleecks - AI-Martech as a game changer-DEF.pdfKleecks - AI-Martech as a game changer-DEF.pdf
Kleecks - AI-Martech as a game changer-DEF.pdf
 
How to automate a long tail SEO strategy for ecommerce
How to automate a long tail SEO strategy for ecommerceHow to automate a long tail SEO strategy for ecommerce
How to automate a long tail SEO strategy for ecommerce
 
Why Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody HardWhy Scaling (Great) Content Is So Bloody Hard
Why Scaling (Great) Content Is So Bloody Hard
 
Martin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry - SEO strategy c/o England manager Gareth SouthgateMartin McGarry - SEO strategy c/o England manager Gareth Southgate
Martin McGarry - SEO strategy c/o England manager Gareth Southgate
 
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
7 E-Commerce SEO Mistakes & How to Fix Them #DeepSEOCon
 
chima mmeje brighton seo speaker slide april22
chima mmeje   brighton seo speaker slide april22chima mmeje   brighton seo speaker slide april22
chima mmeje brighton seo speaker slide april22
 
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
How to Implement Machine Learning in Your Internal Linking Audit - Lazarina S...
 
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
kevin Indig - Internal Link Building on Steroids (Tech SEO Boost )
 
The Big SEO Migration - Learnings from a first time hiker
The Big SEO Migration - Learnings from a first time hiker The Big SEO Migration - Learnings from a first time hiker
The Big SEO Migration - Learnings from a first time hiker
 
Beth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptxBeth Barnham Schema Auditing BrightonSEO Slides.pptx
Beth Barnham Schema Auditing BrightonSEO Slides.pptx
 
How To EAT Links.pptx
How To EAT Links.pptxHow To EAT Links.pptx
How To EAT Links.pptx
 
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
Machine Learning use cases for Technical SEO Automation Brighton SEO Patrick ...
 
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
BrightonSEO October 2022 - Martijn Scheybeler - SEO Testing: Find Out What Wo...
 
How to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performance
 
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
PubCon, Lazarina Stoy. - Machine Learning in Search: Google's ML APIs vs Open...
 
Google Sheets For SEO - Tom Pool - London SEO Meetup XL
Google Sheets For SEO - Tom Pool - London SEO Meetup XLGoogle Sheets For SEO - Tom Pool - London SEO Meetup XL
Google Sheets For SEO - Tom Pool - London SEO Meetup XL
 
[BrightonSEO October 2022] On-page SEO: from intention to conversion
[BrightonSEO October 2022] On-page SEO: from intention to conversion[BrightonSEO October 2022] On-page SEO: from intention to conversion
[BrightonSEO October 2022] On-page SEO: from intention to conversion
 
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDXThe most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
The most Damaging SEO Mistakes & Issues in 2021 and How to Avoid Them #EngagePDX
 
The Full Scoop on Google's Title Rewrites
The Full Scoop on Google's Title RewritesThe Full Scoop on Google's Title Rewrites
The Full Scoop on Google's Title Rewrites
 

Viewers also liked

Export all the data! Rapporti avanzati per SEO e PPC
Export all the data! Rapporti avanzati per SEO e PPCExport all the data! Rapporti avanzati per SEO e PPC
Export all the data! Rapporti avanzati per SEO e PPC
Martino Mosna
 
Getting the right mix of digital analytics tracking, processes and tools
Getting the right mix of digital analytics tracking, processes and toolsGetting the right mix of digital analytics tracking, processes and tools
Getting the right mix of digital analytics tracking, processes and tools
Digital Science Consulting Ltd
 
Measuring Content Performance - Jon Hibbitt
Measuring Content Performance - Jon HibbittMeasuring Content Performance - Jon Hibbitt
Measuring Content Performance - Jon Hibbitt
SiteVisibility
 
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
We Are Marketing
 
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
We Are Marketing
 
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
We Are Marketing
 
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
We Are Marketing
 
Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...
Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...
Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...
We Are Marketing
 
María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...
María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...
María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...
We Are Marketing
 
Aleyda Solis: Reenfocando tu SEO para un mundo Mobile-First
Aleyda Solis: Reenfocando tu SEO para un mundo Mobile-FirstAleyda Solis: Reenfocando tu SEO para un mundo Mobile-First
Aleyda Solis: Reenfocando tu SEO para un mundo Mobile-First
We Are Marketing
 
Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....
Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....
Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....
Brian Alpert
 
Dynamic Ads for Control Freaks By Steve Hammer
Dynamic Ads for Control Freaks By Steve HammerDynamic Ads for Control Freaks By Steve Hammer
Dynamic Ads for Control Freaks By Steve Hammer
Search Marketing Expo - SMX
 
Keyword Research in Autopilot by Google Spreadsheet Macros
Keyword Research in Autopilot by Google Spreadsheet MacrosKeyword Research in Autopilot by Google Spreadsheet Macros
Keyword Research in Autopilot by Google Spreadsheet Macros
Yiğit Konur
 
Dynamic Remarketing for the Google Display Network By David Szetela
Dynamic Remarketing for the Google Display Network By David SzetelaDynamic Remarketing for the Google Display Network By David Szetela
Dynamic Remarketing for the Google Display Network By David Szetela
Search Marketing Expo - SMX
 
Turning Analysis into Action with APIs - Superweek 2017
Turning Analysis into Action with APIs - Superweek 2017Turning Analysis into Action with APIs - Superweek 2017
Turning Analysis into Action with APIs - Superweek 2017
Peter Meyer
 

Viewers also liked (15)

Export all the data! Rapporti avanzati per SEO e PPC
Export all the data! Rapporti avanzati per SEO e PPCExport all the data! Rapporti avanzati per SEO e PPC
Export all the data! Rapporti avanzati per SEO e PPC
 
Getting the right mix of digital analytics tracking, processes and tools
Getting the right mix of digital analytics tracking, processes and toolsGetting the right mix of digital analytics tracking, processes and tools
Getting the right mix of digital analytics tracking, processes and tools
 
Measuring Content Performance - Jon Hibbitt
Measuring Content Performance - Jon HibbittMeasuring Content Performance - Jon Hibbitt
Measuring Content Performance - Jon Hibbitt
 
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
Fátima Martinez: Usos avanzados del Social Intelligence en The Inbounder Worl...
 
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
Rafael Jiménez: Attribution Modelings - Edición para technical marketers en T...
 
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
Fernando Macià: SEO internacional en escenarios complejos en The Inbounder Wo...
 
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
María José Cachón: Best tools y prácticas para diagnosticar y solucionar prob...
 
Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...
Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...
Charo Paredes: Cómo optimizar tu APP con un presupuesto limitado en The Inbou...
 
María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...
María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...
María José Millán: Los 7 pecados capitales del Inbound Marketing en The Inbou...
 
Aleyda Solis: Reenfocando tu SEO para un mundo Mobile-First
Aleyda Solis: Reenfocando tu SEO para un mundo Mobile-FirstAleyda Solis: Reenfocando tu SEO para un mundo Mobile-First
Aleyda Solis: Reenfocando tu SEO para un mundo Mobile-First
 
Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....
Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....
Web Analytics and SEO: Learn the Ropes, Work a Plan, Measure the Right Stuff....
 
Dynamic Ads for Control Freaks By Steve Hammer
Dynamic Ads for Control Freaks By Steve HammerDynamic Ads for Control Freaks By Steve Hammer
Dynamic Ads for Control Freaks By Steve Hammer
 
Keyword Research in Autopilot by Google Spreadsheet Macros
Keyword Research in Autopilot by Google Spreadsheet MacrosKeyword Research in Autopilot by Google Spreadsheet Macros
Keyword Research in Autopilot by Google Spreadsheet Macros
 
Dynamic Remarketing for the Google Display Network By David Szetela
Dynamic Remarketing for the Google Display Network By David SzetelaDynamic Remarketing for the Google Display Network By David Szetela
Dynamic Remarketing for the Google Display Network By David Szetela
 
Turning Analysis into Action with APIs - Superweek 2017
Turning Analysis into Action with APIs - Superweek 2017Turning Analysis into Action with APIs - Superweek 2017
Turning Analysis into Action with APIs - Superweek 2017
 

Similar to Regular Expressions for Regular Joes (and SEOs)

Regular Expressions in Google Analytics
Regular Expressions in Google AnalyticsRegular Expressions in Google Analytics
Regular Expressions in Google Analytics
Shivani Singh
 
Tdd is Dead, Long Live TDD
Tdd is Dead, Long Live TDDTdd is Dead, Long Live TDD
Tdd is Dead, Long Live TDD
Jonathan Acker
 
API Simplicity == Speed; Designing APIs That are Easy and Fun to Use
API Simplicity == Speed; Designing APIs That are Easy and Fun to UseAPI Simplicity == Speed; Designing APIs That are Easy and Fun to Use
API Simplicity == Speed; Designing APIs That are Easy and Fun to Use
Harold Madsen
 
Sourcingrecruitinggooglelive
SourcingrecruitinggoogleliveSourcingrecruitinggooglelive
Sourcingrecruitinggooglelive
mgaudet
 
Industrial strength - Natural Language Processing
Industrial strength - Natural Language ProcessingIndustrial strength - Natural Language Processing
Industrial strength - Natural Language Processing
Jeffrey Williams
 
The Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJS
The Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJSThe Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJS
The Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJS
mfyleman
 
Recursion with details Implementation.pptx
Recursion with details Implementation.pptxRecursion with details Implementation.pptx
Recursion with details Implementation.pptx
mrhabib10
 
EN Intro to Recursion by Slidesgo.pptx
EN Intro to Recursion by Slidesgo.pptxEN Intro to Recursion by Slidesgo.pptx
EN Intro to Recursion by Slidesgo.pptx
mrsk83179
 
Search Google Like a Pro
Search Google Like a ProSearch Google Like a Pro
Search Google Like a Pro
Globe Education Network
 
Practical Machine Learning and Rails Part2
Practical Machine Learning and Rails Part2Practical Machine Learning and Rails Part2
Practical Machine Learning and Rails Part2
ryanstout
 
What's new for Text in SAP HANA SPS 11
What's new for Text in SAP HANA SPS 11What's new for Text in SAP HANA SPS 11
What's new for Text in SAP HANA SPS 11
SAP Technology
 
DDD patterns that were not in the book
DDD patterns that were not in the bookDDD patterns that were not in the book
DDD patterns that were not in the book
Cyrille Martraire
 
Boolean operators
Boolean operatorsBoolean operators
Boolean operators
Dean Da Costa
 
Google Search
Google SearchGoogle Search
Google Search
jjs1981
 
Html form
Html formHtml form
Html form
Priyansh Mathur
 
Get the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEXGet the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEX
Jorge Rimblas
 
Searching in AtoM
Searching in AtoMSearching in AtoM
Searching in AtoM
Artefactual Systems - AtoM
 
Don't Fear the Regex - CapitalCamp/GovDays 2014
Don't Fear the Regex - CapitalCamp/GovDays 2014Don't Fear the Regex - CapitalCamp/GovDays 2014
Don't Fear the Regex - CapitalCamp/GovDays 2014
Sandy Smith
 
Advanced Search: WebSearch University 2014
Advanced Search: WebSearch University 2014Advanced Search: WebSearch University 2014
Advanced Search: WebSearch University 2014
notess
 
Advanced sass/compass
Advanced sass/compassAdvanced sass/compass
Advanced sass/compass
Nick Cooley
 

Similar to Regular Expressions for Regular Joes (and SEOs) (20)

Regular Expressions in Google Analytics
Regular Expressions in Google AnalyticsRegular Expressions in Google Analytics
Regular Expressions in Google Analytics
 
Tdd is Dead, Long Live TDD
Tdd is Dead, Long Live TDDTdd is Dead, Long Live TDD
Tdd is Dead, Long Live TDD
 
API Simplicity == Speed; Designing APIs That are Easy and Fun to Use
API Simplicity == Speed; Designing APIs That are Easy and Fun to UseAPI Simplicity == Speed; Designing APIs That are Easy and Fun to Use
API Simplicity == Speed; Designing APIs That are Easy and Fun to Use
 
Sourcingrecruitinggooglelive
SourcingrecruitinggoogleliveSourcingrecruitinggooglelive
Sourcingrecruitinggooglelive
 
Industrial strength - Natural Language Processing
Industrial strength - Natural Language ProcessingIndustrial strength - Natural Language Processing
Industrial strength - Natural Language Processing
 
The Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJS
The Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJSThe Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJS
The Road To Damascus - A Conversion Experience: LotusScript and @Formula to SSJS
 
Recursion with details Implementation.pptx
Recursion with details Implementation.pptxRecursion with details Implementation.pptx
Recursion with details Implementation.pptx
 
EN Intro to Recursion by Slidesgo.pptx
EN Intro to Recursion by Slidesgo.pptxEN Intro to Recursion by Slidesgo.pptx
EN Intro to Recursion by Slidesgo.pptx
 
Search Google Like a Pro
Search Google Like a ProSearch Google Like a Pro
Search Google Like a Pro
 
Practical Machine Learning and Rails Part2
Practical Machine Learning and Rails Part2Practical Machine Learning and Rails Part2
Practical Machine Learning and Rails Part2
 
What's new for Text in SAP HANA SPS 11
What's new for Text in SAP HANA SPS 11What's new for Text in SAP HANA SPS 11
What's new for Text in SAP HANA SPS 11
 
DDD patterns that were not in the book
DDD patterns that were not in the bookDDD patterns that were not in the book
DDD patterns that were not in the book
 
Boolean operators
Boolean operatorsBoolean operators
Boolean operators
 
Google Search
Google SearchGoogle Search
Google Search
 
Html form
Html formHtml form
Html form
 
Get the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEXGet the Look and Feel You Want in Oracle APEX
Get the Look and Feel You Want in Oracle APEX
 
Searching in AtoM
Searching in AtoMSearching in AtoM
Searching in AtoM
 
Don't Fear the Regex - CapitalCamp/GovDays 2014
Don't Fear the Regex - CapitalCamp/GovDays 2014Don't Fear the Regex - CapitalCamp/GovDays 2014
Don't Fear the Regex - CapitalCamp/GovDays 2014
 
Advanced Search: WebSearch University 2014
Advanced Search: WebSearch University 2014Advanced Search: WebSearch University 2014
Advanced Search: WebSearch University 2014
 
Advanced sass/compass
Advanced sass/compassAdvanced sass/compass
Advanced sass/compass
 

More from Paul Shapiro

Breaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul Shapiro
Breaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul ShapiroBreaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul Shapiro
Breaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul Shapiro
Paul Shapiro
 
Redefining Technical SEO, #MozCon 2019 by Paul Shapiro
Redefining Technical SEO, #MozCon 2019 by Paul ShapiroRedefining Technical SEO, #MozCon 2019 by Paul Shapiro
Redefining Technical SEO, #MozCon 2019 by Paul Shapiro
Paul Shapiro
 
How to Leverage APIs for SEO #TTTLive2019
How to Leverage APIs for SEO #TTTLive2019How to Leverage APIs for SEO #TTTLive2019
How to Leverage APIs for SEO #TTTLive2019
Paul Shapiro
 
Start Building SEO Efficiencies with Automation - MNSearch Summit 2018
Start Building SEO Efficiencies with Automation - MNSearch Summit 2018Start Building SEO Efficiencies with Automation - MNSearch Summit 2018
Start Building SEO Efficiencies with Automation - MNSearch Summit 2018
Paul Shapiro
 
Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...
Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...
Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...
Paul Shapiro
 
The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...
The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...
The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...
Paul Shapiro
 
Idea: Selling Clients Google+ Through YouTube
Idea: Selling Clients Google+ Through YouTubeIdea: Selling Clients Google+ Through YouTube
Idea: Selling Clients Google+ Through YouTube
Paul Shapiro
 
Social-SEO Content Strategy: Ideas for a Data Driven Approach
Social-SEO Content Strategy: Ideas for a Data Driven ApproachSocial-SEO Content Strategy: Ideas for a Data Driven Approach
Social-SEO Content Strategy: Ideas for a Data Driven Approach
Paul Shapiro
 

More from Paul Shapiro (8)

Breaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul Shapiro
Breaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul ShapiroBreaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul Shapiro
Breaking Down NLP for SEOs - SMX Advanced Europe 2019 - Paul Shapiro
 
Redefining Technical SEO, #MozCon 2019 by Paul Shapiro
Redefining Technical SEO, #MozCon 2019 by Paul ShapiroRedefining Technical SEO, #MozCon 2019 by Paul Shapiro
Redefining Technical SEO, #MozCon 2019 by Paul Shapiro
 
How to Leverage APIs for SEO #TTTLive2019
How to Leverage APIs for SEO #TTTLive2019How to Leverage APIs for SEO #TTTLive2019
How to Leverage APIs for SEO #TTTLive2019
 
Start Building SEO Efficiencies with Automation - MNSearch Summit 2018
Start Building SEO Efficiencies with Automation - MNSearch Summit 2018Start Building SEO Efficiencies with Automation - MNSearch Summit 2018
Start Building SEO Efficiencies with Automation - MNSearch Summit 2018
 
Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...
Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...
Put Your Data To Work: Ways to Uncover Content Ideas That Deliver #Confluence...
 
The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...
The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...
The Actionable Guide to Doing Better Semantic Keyword Research #BrightonSEO (...
 
Idea: Selling Clients Google+ Through YouTube
Idea: Selling Clients Google+ Through YouTubeIdea: Selling Clients Google+ Through YouTube
Idea: Selling Clients Google+ Through YouTube
 
Social-SEO Content Strategy: Ideas for a Data Driven Approach
Social-SEO Content Strategy: Ideas for a Data Driven ApproachSocial-SEO Content Strategy: Ideas for a Data Driven Approach
Social-SEO Content Strategy: Ideas for a Data Driven Approach
 

Recently uploaded

10 Advantages and Disadvantages of Social Media Marketing in 2024
10 Advantages and Disadvantages of Social Media Marketing in 202410 Advantages and Disadvantages of Social Media Marketing in 2024
10 Advantages and Disadvantages of Social Media Marketing in 2024
Markonik
 
SEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale Bertrand
SEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale BertrandSEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale Bertrand
SEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale Bertrand
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Know about what is digital marketing.pptx
Know about what is digital marketing.pptxKnow about what is digital marketing.pptx
Know about what is digital marketing.pptx
cricketworld24
 
Paid Media Targeting in a Cookieless Future - Kevin Lee
Paid Media Targeting in a Cookieless Future - Kevin LeePaid Media Targeting in a Cookieless Future - Kevin Lee
Paid Media Targeting in a Cookieless Future - Kevin Lee
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Traditional Foods Of Australia and The History
Traditional Foods Of Australia and The HistoryTraditional Foods Of Australia and The History
Traditional Foods Of Australia and The History
The Aussie Way
 
The Intersection Between AI & Paid Media Management - Curtiss Gulash
The Intersection Between AI & Paid Media Management - Curtiss GulashThe Intersection Between AI & Paid Media Management - Curtiss Gulash
The Intersection Between AI & Paid Media Management - Curtiss Gulash
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Social Media Marketing Master Class - Jeff Dwoskin
Social Media Marketing Master Class - Jeff DwoskinSocial Media Marketing Master Class - Jeff Dwoskin
Brand Repositioning & Communication Presentation
Brand Repositioning & Communication PresentationBrand Repositioning & Communication Presentation
Brand Repositioning & Communication Presentation
Rajesh Math
 
How to Get High-Quality Backlinks in 2024
How to Get High-Quality Backlinks in 2024How to Get High-Quality Backlinks in 2024
How to Get High-Quality Backlinks in 2024
Jomer Gregorio
 
campaign ads for fostanak local brand in egypt
campaign ads for fostanak local brand in egyptcampaign ads for fostanak local brand in egypt
campaign ads for fostanak local brand in egypt
shahdmahmoudattia
 
ABM, The True Story - Rob Griffin, G5 Futures
ABM, The True Story - Rob Griffin, G5 FuturesABM, The True Story - Rob Griffin, G5 Futures
Toortizi - Rationale ( SALTY SNACKS )
Toortizi  -  Rationale  ( SALTY SNACKS )Toortizi  -  Rationale  ( SALTY SNACKS )
Toortizi - Rationale ( SALTY SNACKS )
IQads
 
Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...
Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...
Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Chandigarh Institute of Internet Marketing
Chandigarh Institute of Internet MarketingChandigarh Institute of Internet Marketing
Chandigarh Institute of Internet Marketing
CIIM
 
10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf
10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf
10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf
Top Klickz
 
Chemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptx
Chemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptxChemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptx
Chemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptx
mayurparate000
 
Importance of SEO to support holistic marketing strategies and the rise of n...
Importance of SEO to  support holistic marketing strategies and the rise of n...Importance of SEO to  support holistic marketing strategies and the rise of n...
Importance of SEO to support holistic marketing strategies and the rise of n...
JessicaRedman5
 
Revolutionizing Advertising with Billion Broadcaster Standee Screen Media
Revolutionizing Advertising with Billion Broadcaster Standee Screen MediaRevolutionizing Advertising with Billion Broadcaster Standee Screen Media
Revolutionizing Advertising with Billion Broadcaster Standee Screen Media
VikasYadav194549
 
PPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin Lund
PPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin LundPPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin Lund
PPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin Lund
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 

Recently uploaded (20)

10 Advantages and Disadvantages of Social Media Marketing in 2024
10 Advantages and Disadvantages of Social Media Marketing in 202410 Advantages and Disadvantages of Social Media Marketing in 2024
10 Advantages and Disadvantages of Social Media Marketing in 2024
 
SEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale Bertrand
SEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale BertrandSEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale Bertrand
SEO for Revenue - Grow Your Business, Not Just Your Rankings - Dale Bertrand
 
Know about what is digital marketing.pptx
Know about what is digital marketing.pptxKnow about what is digital marketing.pptx
Know about what is digital marketing.pptx
 
Paid Media Targeting in a Cookieless Future - Kevin Lee
Paid Media Targeting in a Cookieless Future - Kevin LeePaid Media Targeting in a Cookieless Future - Kevin Lee
Paid Media Targeting in a Cookieless Future - Kevin Lee
 
Traditional Foods Of Australia and The History
Traditional Foods Of Australia and The HistoryTraditional Foods Of Australia and The History
Traditional Foods Of Australia and The History
 
The Intersection Between AI & Paid Media Management - Curtiss Gulash
The Intersection Between AI & Paid Media Management - Curtiss GulashThe Intersection Between AI & Paid Media Management - Curtiss Gulash
The Intersection Between AI & Paid Media Management - Curtiss Gulash
 
Social Media Marketing Master Class - Jeff Dwoskin
Social Media Marketing Master Class - Jeff DwoskinSocial Media Marketing Master Class - Jeff Dwoskin
Social Media Marketing Master Class - Jeff Dwoskin
 
Brand Repositioning & Communication Presentation
Brand Repositioning & Communication PresentationBrand Repositioning & Communication Presentation
Brand Repositioning & Communication Presentation
 
How to Get High-Quality Backlinks in 2024
How to Get High-Quality Backlinks in 2024How to Get High-Quality Backlinks in 2024
How to Get High-Quality Backlinks in 2024
 
campaign ads for fostanak local brand in egypt
campaign ads for fostanak local brand in egyptcampaign ads for fostanak local brand in egypt
campaign ads for fostanak local brand in egypt
 
ABM, The True Story - Rob Griffin, G5 Futures
ABM, The True Story - Rob Griffin, G5 FuturesABM, The True Story - Rob Griffin, G5 Futures
ABM, The True Story - Rob Griffin, G5 Futures
 
Toortizi - Rationale ( SALTY SNACKS )
Toortizi  -  Rationale  ( SALTY SNACKS )Toortizi  -  Rationale  ( SALTY SNACKS )
Toortizi - Rationale ( SALTY SNACKS )
 
Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...
Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...
Tools, Systems, & Websites to Grow a Profitable Business on Social Media - Ta...
 
Chandigarh Institute of Internet Marketing
Chandigarh Institute of Internet MarketingChandigarh Institute of Internet Marketing
Chandigarh Institute of Internet Marketing
 
10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf
10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf
10 Powerful Strategies to Solve Common Payroll Problems in SMEs_.pdf
 
Chemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptx
Chemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptxChemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptx
Chemical Industry- Rashtriya Chemical Fertilizers (RCF) .pptx
 
Importance of SEO to support holistic marketing strategies and the rise of n...
Importance of SEO to  support holistic marketing strategies and the rise of n...Importance of SEO to  support holistic marketing strategies and the rise of n...
Importance of SEO to support holistic marketing strategies and the rise of n...
 
Social Media and Personal Branding - Bob Cargill
Social Media and Personal Branding - Bob CargillSocial Media and Personal Branding - Bob Cargill
Social Media and Personal Branding - Bob Cargill
 
Revolutionizing Advertising with Billion Broadcaster Standee Screen Media
Revolutionizing Advertising with Billion Broadcaster Standee Screen MediaRevolutionizing Advertising with Billion Broadcaster Standee Screen Media
Revolutionizing Advertising with Billion Broadcaster Standee Screen Media
 
PPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin Lund
PPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin LundPPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin Lund
PPC and SEO Synergies - Strategies Every Company Should Deploy - Benjamin Lund
 

Regular Expressions for Regular Joes (and SEOs)

  • 2. What are regular expressions? • A regular expression (sometimes referred to as regex or regexp) is basically find-and-replace on steroids, an advanced system of matching text patterns. COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 2
  • 3. Most Common Example: Google Analytics COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 3 • Using “pipes” to exclude pages with extraneous symbols attached to the URL, like UTM tracking parameters.
  • 4. Where can I use regular expressions? • Many text editors – Notepad++ is an awesome one for Windows • SEO Tools for Excel add-on – http://nielsbosma.se/projects/seotools/ • Google Docs – =regexextract() function – =regexmatch() function – =regexreplace() function • Google Analytics • Screaming Frog • DeepCrawl • .htaccess – RewriteCond – RewriteRule • Programming Languages COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 4
  • 5. RegEx Basics Each one of these you learn, the more helpful it is. You don’t have to learn all of them. COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 5
  • 6. Anchors • “Anchors” match position in text rather than text itself: – ^ (carat) will match the beginning of a line – $ (dollar sign) will match the end of a line Example: word word word word • ^word  will result in “word word word word” • word$  will result in “word word word word” COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 6
  • 7. Character Classes • [ starts a character class • ] ends a character class – Any of the characters within [ ] will be matched Note: ranges like [G-V] (letters g though v) or [1-10] (number 1 through 10) also work. Example: hnaeyesdtlaeck • [nedl]  will result in “hnaeyesdtlaeck” Example: Do you do SEO or SEM? • SE[OM]  will result in “Do you do SEO or SEM?” COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 7
  • 8. Miscellaneous Special Characters • | (pipe) means OR Example: this or that? – this|that will result in “this or that?” • . (period) represents any character (wildcard) Example: Excuse my French; Detect profanity like shit, sh#t, or sh!t. – sh.t will result in “Detect profanity like shit, sh#t, or sh!t.” COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 8
  • 9. Escaping Characters There are many characters in regular expressions which have special meanings, so if you wish to find the literal characters they must be “escaped” with a backslash preceding it. Example: I want to find the period. – .  I want to find the period. – If I used just a period without escaping with a backslash: .  will result in “I want to find the period.” COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 9
  • 10. Quantifiers • ? (question mark) means optional. It matches 0 or 1 of the previous character, essentially making it optional. Example: is the url http or https? – https?  will result in “is the url http or https?” • * (asterisk) means zero or more. It will find 0 or more occurrences of the previous character. Example #1: What’s that photo website again? Is it Flickr, Flicker, or Flickeeer? – Flicke*r  will result in “What’s that photo website again? Is it Flickr, Flicker, or Flickeeer?” Example #2: hlp help heelp heeeeeeeelp – he*lp  will result in “hlp help heelp heeeeeeeelp” COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 10
  • 11. Quantifiers - Continued • + (plus) means one or more. It will find 1 or more occurrences of the previous character. Example #1: hlp help heelp heeeeeeeelp – he+lp  will result in “hlp help heelp heeeeeeeelp” Example #2: hlp help heelp heeeeeeeelp hellllllllp • h.+lp  will result in “hlp help heelp heeeeeeeelp hellllllllp” COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 11
  • 12. Understanding Differences Between Quantifiers COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 12 Animated GIF Example
  • 13. Quantifiers - Continued • { } will match a certain quantity of previous characters. You can also specify a range, like “1 to 3” or “3 or more” if you include a , (comma) inside the brackets. Example #1: buz buzz buzzz buzzzz buzzzzz – buz{3}  will result in “buz buzz buzzz buzzzz buzzzzz” Note: {3} reads “exactly 3} in plain english. – buz{2,4}  will result in “buz buzz buzzz buzzzz buzzzzz” Note: {2,4} reads “2 to 4” in plain english. COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 13
  • 14. Groups • Groups are encapsulated in parenthesis ( ) Example: hahaha haha ha haha ha! – (ha)+  will render “hahaha haha ha haha ha!” ( )COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 14
  • 15. Capture Groups • Groups can also be easily captured as variables that can be repeated back: – $1 would display the contents of the first group, $2 would display the contents of the second group and so on. Example: hello I am paul – hello I am (.+)  used with $1  will capture “paul” • To disable the capturing of groups we use (?:), so that they can be used solely for the purpose of grouping patterns together. So with the above example, (?:.+) will not capture anything COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 15
  • 16. Lookarounds COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 16 • Positive Lookaheads will match a group after the main pattern without actually including it in the result. The expression is (?=) Example: 1in 250px 2in 3em 40px – [0-9]+(?=px)  will result in “1in 250px 2in 3em 40px” Everything WITH “px” • A Negative Lookahead is used to specify a group that won’t be matched after the main pattern. The expression is (?!) Example: 1in 250px 2in 3em 40px – [0-9]+(?!em)  will result in “1in 250px 2in 3em 40px” Everything BUT “em”
  • 17. RegEx in Practice Real Use Cases COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 17
  • 18. Problem #1 I want to take a list of >2,000 Mashable.com URLs, exported from BuzzSumo.com and segment the <titles> into different segments (list posts, title as a question, etc.) and see which ones received a greater number of social shares. What is the fastest way of doing this? Hint: COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 18
  • 19. Solution #1: SEO Tools for Excel Add-on w/ RegEx • Is the post title a question? – =RegexpIsMatch(A2,"?$") • Is the post a listacle/list post? – =RegexpIsMatch(A2,"^[0-9]*s|^[0-9],[0-9]*s") • Extract publishing year from URL – =RegexpFind(D2,"https?://(?:www.)?mashable.com/([0- 9]{4})/.+","$1") • Presence of a year in the title – =IFERROR(RegexpFind(A40,"([0-9]{4})","$1"),“N/A") COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 19
  • 20. Nice! Took < 1 Minute. COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 20
  • 21. Problem #2 • There are hundreds of pages with <span> tags that should be rendered as <h2>. Some have class and/or id attributes and some don’t. I want to grab the contents (only) of these span tags for a client. What is the fastest way? …RegEx! COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 21
  • 22. Solution #2: SEO Tools for Excel Add-on w/ RegEx • For a list of URL in Excel, and again with the SEO Tool for Excel add-on, use a regular expression like this: – =RegexpFindOnUrl(D3,"<span(?:.+)?>(.+)</span>",1) COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 22
  • 23. Problem #3: • I want to grab the full description from a long list of YouTube videos. We can grab it from the meta description, but it might be an incomplete description that is truncated, so we need to grab the actual page text. What’s the fastest way? COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 23
  • 24. …Probably XPath, but we can also use RegEx  COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 24
  • 25. Solution #3: SEO Tools for Excel Add-on • For a list of YouTube video URLs in Excel, use the SEO Tools for Excel Add-on with the following regular expression: – =RegexpFindOnUrl(A1,"<p id=.eow- description.s?>(.+)</p>",1) Please note, that because the HTML utilized a double- quote, you have to use another character in its place so as not to break Excel, like the period, to represent ANY character. COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 25
  • 26. Problem #4 • I want to quickly change a long list of keywords into the exact match format with the keyword surrounded by brackets, [ ]. What’s the fastest way? COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 26
  • 27. Solution #4: Notepad++ Example 1. Copy a column of keywords from Excel into Notepad++ 2. Control + F and switch to the “Replace” tab. 3. Switch the “Search Mode” to “Regular Expression” 4. Enter ^ in the “Find what” field and [ in the “Replace with” field. 5. Hit the “Replace All” button. 6. Then, enter $ in the “Find what” field and ] in the “Replace with” field. 7. Again, hit the “Replace All” button. COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 27
  • 28. Problem #5 • I want to identify which keywords from Google Webmaster Tools is Branded/Non- Branded, along with misspellings, from our SQL database in Spotfire. What’s the fastest way? COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 28
  • 29. A Solution: Calculated Column with ~= Operator • Create a calculated column with an expression like the below: If([keyword]~="unstopable|unstopables|unstoppable|unstoppables|inst opable|instopabales|[ui]nstop[a-z]+?b[a-z]+?s?|(scent booster)|(scent boosters)",true,false) – This should find spellings/mis-spellings of Downy Unstopables COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 29
  • 30. Other Places We Might Use RegEx Google Analytics supports regular expressions: – When creating filters – When setting up goals – When defining goal funnel steps – When defining advanced segments – When using report filters – When using filters in multichannel reporting COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 30 h/t Annie Cushing
  • 31. Other Places We Might Use RegEx .htaccess – Redirect a set of URLs matching a certain pattern to a new URL pattern: Example: RewriteRule ^/dir/index.php?id=(0-9+).htm$ file-$1 [L] Screaming Frog – URL Rewriting: RegEx Replace – Spider Include/Exclude URLs COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 31
  • 32. Other Places We Might Use RegEx Deepcrawl COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 32
  • 33. Resources Helpful tool for testing RegEx and gives a good breakdown of your patterns: • http://www.regexr.com/ A handy cheat sheet to print and put on your desk: • http://www.cheatography.com/davechild/cheat- sheets/regular-expressions/pdf/ SEO Tools for Excel Add-on • http://nielsbosma.se/projects/seotools/ Notepad++ • http://notepad-plus-plus.org/ COPYRIGHT 2014 CATALYST. ALL RIGHTS RESERVED. APRIL 29, 2014 | PAGE 33