SlideShare una empresa de Scribd logo
1 de 60
Regex syntax
/pattern/options
Regex syntax
A single character: a, b, or c
[abc]
A single character: a, b, or c
Any single character but a, b,
or c
[^abc]
Any single character but a, b,
or c
Any single character in the
range a-z
[a-z]
Any single character in the
range a-z
Any single character in the
range a-z or A-Z
[a-zA-Z]
Any single character in the
range a-z or A-Z
Start of line
^
Start of line
End of line
$
End of line
Start of string
A
Start of string
End of string
z
End of string
Any single character
.
Any single character
Any whitespace character
s
Any whitespace character
Any non-whitespace character
S
Any non-whitespace character
Any digit
d
Any digit
Any non-digit
D
Any non-digit
Any word character (letter,
number, underscore)
w
Any word character (letter,
number, underscore)
Any non-word character
W
Any non-word character
Any word boundary character
b
Any word boundary character
Capture everything enclosed
(...)
Capture everything enclosed
a or b
(a|b)
a or b
Zero or one of a
a?
Zero or one of a
Zero or more of a
a*
Zero or more of a
One or more of a
a+
One or more of a
Exactly 3 of a
a{3}
Exactly 3 of a
3 or more of a
a{3,}
3 or more of a
Between 3 and 6 of a
a{3,6}
Between 3 and 6 of a
Case insensitive option.
i
Case insensitive option.
Case insensitive option.
i
Case insensitive option.
make dot match newlines
m
make dot match newlines
ignore whitespace in regex
x
ignore whitespace in regex
www.rubular.com
Credit for content and a great
tool for practicing.

Más contenido relacionado

Destacado

Universiteit Antwerpen Europese Politieke Integratie Ken Lawrence
Universiteit Antwerpen Europese Politieke Integratie Ken LawrenceUniversiteit Antwerpen Europese Politieke Integratie Ken Lawrence
Universiteit Antwerpen Europese Politieke Integratie Ken Lawrence
Thisco
 
Edisi Aceh 27 Maret
Edisi Aceh 27 MaretEdisi Aceh 27 Maret
Edisi Aceh 27 Maret
epaper
 
FCC Interop Board Final Report 05 22 12
FCC Interop Board Final Report 05 22 12FCC Interop Board Final Report 05 22 12
FCC Interop Board Final Report 05 22 12
Claudio Lucente
 
Aprendizaje colaborativo
Aprendizaje colaborativoAprendizaje colaborativo
Aprendizaje colaborativo
laurafrencia
 
Edisi9oktacehnas
Edisi9oktacehnasEdisi9oktacehnas
Edisi9oktacehnas
epaper
 
V3 basic pm training overview thammasat
V3 basic pm training overview thammasatV3 basic pm training overview thammasat
V3 basic pm training overview thammasat
Robert Twiddy
 
11jun aceh
11jun aceh11jun aceh
11jun aceh
epaper
 

Destacado (19)

Universiteit Antwerpen Europese Politieke Integratie Ken Lawrence
Universiteit Antwerpen Europese Politieke Integratie Ken LawrenceUniversiteit Antwerpen Europese Politieke Integratie Ken Lawrence
Universiteit Antwerpen Europese Politieke Integratie Ken Lawrence
 
Michael Shared Memories
Michael Shared MemoriesMichael Shared Memories
Michael Shared Memories
 
Saurabh, the all rounder
Saurabh, the all rounderSaurabh, the all rounder
Saurabh, the all rounder
 
Edisi Aceh 27 Maret
Edisi Aceh 27 MaretEdisi Aceh 27 Maret
Edisi Aceh 27 Maret
 
Analisis tendencias pedagogicas caso personal
Analisis tendencias pedagogicas caso personalAnalisis tendencias pedagogicas caso personal
Analisis tendencias pedagogicas caso personal
 
FCC Interop Board Final Report 05 22 12
FCC Interop Board Final Report 05 22 12FCC Interop Board Final Report 05 22 12
FCC Interop Board Final Report 05 22 12
 
Ispim 2005 Entertain
Ispim 2005 EntertainIspim 2005 Entertain
Ispim 2005 Entertain
 
Aprendizaje colaborativo
Aprendizaje colaborativoAprendizaje colaborativo
Aprendizaje colaborativo
 
NEEL2015 challenge summary
NEEL2015 challenge summaryNEEL2015 challenge summary
NEEL2015 challenge summary
 
Drexel University ARRRchives: a pirate tale
Drexel University ARRRchives: a pirate taleDrexel University ARRRchives: a pirate tale
Drexel University ARRRchives: a pirate tale
 
Is the grass greener in ireland? A comparison of UX in Dublin and Melbourne
Is the grass greener in ireland? A comparison of UX in Dublin and MelbourneIs the grass greener in ireland? A comparison of UX in Dublin and Melbourne
Is the grass greener in ireland? A comparison of UX in Dublin and Melbourne
 
Edisi9oktacehnas
Edisi9oktacehnasEdisi9oktacehnas
Edisi9oktacehnas
 
V3 basic pm training overview thammasat
V3 basic pm training overview thammasatV3 basic pm training overview thammasat
V3 basic pm training overview thammasat
 
15 sep 11 bt property 2011_ultra luxury apartments here to stay
15 sep 11 bt property 2011_ultra luxury apartments here to stay15 sep 11 bt property 2011_ultra luxury apartments here to stay
15 sep 11 bt property 2011_ultra luxury apartments here to stay
 
Human Hair a biological necessity
Human Hair a biological necessityHuman Hair a biological necessity
Human Hair a biological necessity
 
Earn big dreams_small_savings_2013
Earn big dreams_small_savings_2013Earn big dreams_small_savings_2013
Earn big dreams_small_savings_2013
 
Golden state cmaa
Golden state cmaaGolden state cmaa
Golden state cmaa
 
11jun aceh
11jun aceh11jun aceh
11jun aceh
 
Human trafficking
Human traffickingHuman trafficking
Human trafficking
 

Más de Adam Lowe

Sinatra Heroku You And You - PDF Format
Sinatra Heroku You And You - PDF FormatSinatra Heroku You And You - PDF Format
Sinatra Heroku You And You - PDF Format
Adam Lowe
 
Sinatra Heroku You And You - Keynote Format
Sinatra Heroku You And You - Keynote FormatSinatra Heroku You And You - Keynote Format
Sinatra Heroku You And You - Keynote Format
Adam Lowe
 

Más de Adam Lowe (7)

Sinatra Heroku You And You - PDF Format
Sinatra Heroku You And You - PDF FormatSinatra Heroku You And You - PDF Format
Sinatra Heroku You And You - PDF Format
 
Sinatra Heroku You And You - Keynote Format
Sinatra Heroku You And You - Keynote FormatSinatra Heroku You And You - Keynote Format
Sinatra Heroku You And You - Keynote Format
 
Git Cards - Powerpoint Format
Git Cards - Powerpoint FormatGit Cards - Powerpoint Format
Git Cards - Powerpoint Format
 
Git Cards - Keynote Format
Git Cards - Keynote FormatGit Cards - Keynote Format
Git Cards - Keynote Format
 
Regex Cards - Powerpoint Format
Regex Cards - Powerpoint FormatRegex Cards - Powerpoint Format
Regex Cards - Powerpoint Format
 
Vim Cards - Powerpoint Format
Vim Cards - Powerpoint FormatVim Cards - Powerpoint Format
Vim Cards - Powerpoint Format
 
Vim Cards - Keynote Format
Vim Cards - Keynote FormatVim Cards - Keynote Format
Vim Cards - Keynote Format
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Regex Cards - Keynote Format