SlideShare a Scribd company logo
1 of 18
A look at  the power of  Regular Expressions   for the layman Use in Notepad++ Anjesh Tuladhar http://anjesh.blogspot.com http://just-tech.blogspot.com
Alert ,[object Object],[object Object],[object Object],[object Object]
Remove numbers from the list of 1000 rows of names
Choose “Replace” from “Search” menu
You will get a replace dialog box.
Type  [0-9]* (.*)  in find what box,    in replace with box.  Note: There’s a space between [0-9]* and (.*).
Check Regular Expression checkbox to exploit regex functionality.
Hurray! Done.
A short explanation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Now you have to swap numbers and names, but separated by comma.
Type ( [0-9]*) (.*)  in  find what  box,  ,  in  replace with  box.
Replaced!
A short explanation ,[object Object],[object Object],[object Object],[object Object]
Now you have to remove numbers, put last-name first, followed by first-name, and separated by comma.
Type ( [0-9]*) ([^ ]*) (.*)  in  find what  box,  ,  in  replace with  box.
Replaced!
A short explanation ,[object Object],[object Object],[object Object],[object Object]
The beginning ,[object Object],[object Object],[object Object]

More Related Content

What's hot (8)

ο παπουτσωμένος χιονόδρακος
ο παπουτσωμένος χιονόδρακοςο παπουτσωμένος χιονόδρακος
ο παπουτσωμένος χιονόδρακος
 
SQL BASIC QUERIES SOLUTION ~hmftj
SQL BASIC QUERIES SOLUTION ~hmftjSQL BASIC QUERIES SOLUTION ~hmftj
SQL BASIC QUERIES SOLUTION ~hmftj
 
Όλοι στον κήπο. Φύλλα εργασίας και εποπτικό υλικό για την α΄ δημοτικού.(http:...
Όλοι στον κήπο. Φύλλα εργασίας και εποπτικό υλικό για την α΄ δημοτικού.(http:...Όλοι στον κήπο. Φύλλα εργασίας και εποπτικό υλικό για την α΄ δημοτικού.(http:...
Όλοι στον κήπο. Φύλλα εργασίας και εποπτικό υλικό για την α΄ δημοτικού.(http:...
 
Python dictionary
Python dictionaryPython dictionary
Python dictionary
 
COMANDOS AS400
COMANDOS AS400COMANDOS AS400
COMANDOS AS400
 
How to Use VLOOKUP in Excel
How to Use VLOOKUP in ExcelHow to Use VLOOKUP in Excel
How to Use VLOOKUP in Excel
 
Stacks overview with its applications
Stacks overview with its applicationsStacks overview with its applications
Stacks overview with its applications
 
Python dictionary
Python dictionaryPython dictionary
Python dictionary
 

Viewers also liked

Regular Expressions 101
Regular Expressions 101Regular Expressions 101
Regular Expressions 101
Raj Rajandran
 
Regex Presentation
Regex PresentationRegex Presentation
Regex Presentation
arnolambert
 

Viewers also liked (20)

Andrei's Regex Clinic
Andrei's Regex ClinicAndrei's Regex Clinic
Andrei's Regex Clinic
 
Introduction to Regular Expressions
Introduction to Regular ExpressionsIntroduction to Regular Expressions
Introduction to Regular Expressions
 
Regular Expressions
Regular ExpressionsRegular Expressions
Regular Expressions
 
Regular Expressions 101
Regular Expressions 101Regular Expressions 101
Regular Expressions 101
 
Regular Expression (Regex) Fundamentals
Regular Expression (Regex) FundamentalsRegular Expression (Regex) Fundamentals
Regular Expression (Regex) Fundamentals
 
Machine Learning and Data Mining: 04 Association Rule Mining
Machine Learning and Data Mining: 04 Association Rule MiningMachine Learning and Data Mining: 04 Association Rule Mining
Machine Learning and Data Mining: 04 Association Rule Mining
 
Regular expression (compiler)
Regular expression (compiler)Regular expression (compiler)
Regular expression (compiler)
 
Textpad and Regular Expressions
Textpad and Regular ExpressionsTextpad and Regular Expressions
Textpad and Regular Expressions
 
Regular Expression in Action
Regular Expression in ActionRegular Expression in Action
Regular Expression in Action
 
Compiler Engineering Lab#3
Compiler Engineering Lab#3Compiler Engineering Lab#3
Compiler Engineering Lab#3
 
Compiler Engineering Lab#1
Compiler Engineering Lab#1Compiler Engineering Lab#1
Compiler Engineering Lab#1
 
Regex Presentation
Regex PresentationRegex Presentation
Regex Presentation
 
abc
abcabc
abc
 
Unit 1 cd
Unit 1 cdUnit 1 cd
Unit 1 cd
 
Lexical analyzer
Lexical analyzerLexical analyzer
Lexical analyzer
 
Regular language and Regular expression
Regular language and Regular expressionRegular language and Regular expression
Regular language and Regular expression
 
Lecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular LanguagesLecture: Regular Expressions and Regular Languages
Lecture: Regular Expressions and Regular Languages
 
Test Mühendisliğine Giriş Eğitimi - Bölüm 1
Test Mühendisliğine Giriş Eğitimi - Bölüm 1Test Mühendisliğine Giriş Eğitimi - Bölüm 1
Test Mühendisliğine Giriş Eğitimi - Bölüm 1
 
Lexical analyzer
Lexical analyzerLexical analyzer
Lexical analyzer
 
Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿Python匯出入csv以及繪製圖表初稿
Python匯出入csv以及繪製圖表初稿
 

Similar to The Power of Regular Expression: use in notepad++

Regular expressions
Regular expressionsRegular expressions
Regular expressions
Raghu nath
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
Raj Gupta
 
Php String And Regular Expressions
Php String  And Regular ExpressionsPhp String  And Regular Expressions
Php String And Regular Expressions
mussawir20
 

Similar to The Power of Regular Expression: use in notepad++ (20)

Maxbox starter20
Maxbox starter20Maxbox starter20
Maxbox starter20
 
Regular expressions in oracle
Regular expressions in oracleRegular expressions in oracle
Regular expressions in oracle
 
012. SQL.pdf
012. SQL.pdf012. SQL.pdf
012. SQL.pdf
 
Regular Expressions 2007
Regular Expressions 2007Regular Expressions 2007
Regular Expressions 2007
 
Regular Expressions in Google Analytics
Regular Expressions in Google AnalyticsRegular Expressions in Google Analytics
Regular Expressions in Google Analytics
 
Excel formula
Excel formulaExcel formula
Excel formula
 
Strings,patterns and regular expressions in perl
Strings,patterns and regular expressions in perlStrings,patterns and regular expressions in perl
Strings,patterns and regular expressions in perl
 
Unit 1-strings,patterns and regular expressions
Unit 1-strings,patterns and regular expressionsUnit 1-strings,patterns and regular expressions
Unit 1-strings,patterns and regular expressions
 
regex_presentation.pptx
regex_presentation.pptxregex_presentation.pptx
regex_presentation.pptx
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
3.2 javascript regex
3.2 javascript regex3.2 javascript regex
3.2 javascript regex
 
SQL for pattern matching (Oracle 12c)
SQL for pattern matching (Oracle 12c)SQL for pattern matching (Oracle 12c)
SQL for pattern matching (Oracle 12c)
 
Chapter 3: Introduction to Regular Expression
Chapter 3: Introduction to Regular ExpressionChapter 3: Introduction to Regular Expression
Chapter 3: Introduction to Regular Expression
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Regex lecture
Regex lectureRegex lecture
Regex lecture
 
Php String And Regular Expressions
Php String  And Regular ExpressionsPhp String  And Regular Expressions
Php String And Regular Expressions
 
75864 sql
75864 sql75864 sql
75864 sql
 
Python regular expressions
Python regular expressionsPython regular expressions
Python regular expressions
 
Regular_Expressions.pptx
Regular_Expressions.pptxRegular_Expressions.pptx
Regular_Expressions.pptx
 
Lesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsLesson in Strings for C Programming Lessons
Lesson in Strings for C Programming Lessons
 

More from Anjesh Tuladhar

Mobile Technologies and Climate Change
Mobile Technologies and Climate ChangeMobile Technologies and Climate Change
Mobile Technologies and Climate Change
Anjesh Tuladhar
 
digital divide: an implication in future nepal
digital divide: an implication in future nepaldigital divide: an implication in future nepal
digital divide: an implication in future nepal
Anjesh Tuladhar
 
The difference between the poor countries
The difference between the poor countriesThe difference between the poor countries
The difference between the poor countries
Anjesh Tuladhar
 

More from Anjesh Tuladhar (11)

Data Literacy Training - Using Climate Change and Budget data of Nepal
Data Literacy Training - Using Climate Change and Budget data of NepalData Literacy Training - Using Climate Change and Budget data of Nepal
Data Literacy Training - Using Climate Change and Budget data of Nepal
 
Data Literacy Training - case of CA Election 70
Data Literacy Training - case of CA Election 70Data Literacy Training - case of CA Election 70
Data Literacy Training - case of CA Election 70
 
Mobile Technologies and Climate Change
Mobile Technologies and Climate ChangeMobile Technologies and Climate Change
Mobile Technologies and Climate Change
 
Digital Library Repository: Invenio vs Dspace
Digital Library Repository: Invenio vs DspaceDigital Library Repository: Invenio vs Dspace
Digital Library Repository: Invenio vs Dspace
 
Crowdsourcing
CrowdsourcingCrowdsourcing
Crowdsourcing
 
Facebook
FacebookFacebook
Facebook
 
Google Wave Intro
Google Wave IntroGoogle Wave Intro
Google Wave Intro
 
Wiki:Collaborative tool for building documents
Wiki:Collaborative tool for building documentsWiki:Collaborative tool for building documents
Wiki:Collaborative tool for building documents
 
digital divide: an implication in future nepal
digital divide: an implication in future nepaldigital divide: an implication in future nepal
digital divide: an implication in future nepal
 
How smart are you?
How smart are you?How smart are you?
How smart are you?
 
The difference between the poor countries
The difference between the poor countriesThe difference between the poor countries
The difference between the poor countries
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
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, ...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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...
 

The Power of Regular Expression: use in notepad++