regex


how to remember regular expression quantifications?


I have trouble remembering the quantifications, i.e i know what they all mean but does anyone have an easy way to recall which one stands for which ?
? The question mark indicates there is zero or one of the preceding element.
* The asterisk indicates there is zero or more of the preceding element.
+ The plus sign indicates there is one or more of the preceding element.
I'll give an example of the answer i'm looking for.
to distinguish between horizontal and vertical, take the first letter H the line in the middle of the letter 'H' is the direction that the word denotes. the letter 'V' has two lines which go up ,so thats the direction the word means.
? is_whatever? returs boolean (0 or 1)
* 0 * 1 = 0 (0 or more)
+ 0 + 1 = 1 (1 or more)
The question mark is a bend line which stand for 1 and a dot (a circle) which stands for zero.
The asterisk is a larger dot thus zero or more.
The + has a vertical line (representing one) and another one (thus one or more).

Related Links

Regex match two strings but not third (in random order)
Test but not select with regex
Pattern to delete lines causes the whole contents of the file to be deleted in Sed
Using a regex in a conditional vs. an outright awk/sed?
Regex for a valid month
Remove everything except a certain pattern
Hubot Not Responding to regex
RegExp to find first letter of words before #
Creating Index based on another field in logstash
Bug in R's grepl? [closed]
Regular Expression Google Form only numbers in a range
MS Word VBA macro to search and replace (Regex)
Repeat capture group ignoring whitespaces
regex help in notepad++ marking embedded values and copying into a new list
uWSGI routing rule is overriding static files
How to match more than one pattern and delete a line using sed?

Categories

HOME
azure
uwp
document
vr
xaml
robotframework
graylog2
blogs
intel-xdk
visual-studio-2012
apple-mail
splunk
asp.net-mvc-3
tcplistener
asciidoc
axios
cloudrail
orchardcms-1.10
aar
next
spring-boot-admin
atmelstudio
servlet-filters
jruby
csom
jcrop
launchpad
monads
pyparsing
jtapi
kube-dns
seh
machine-language
chai
capstone
dwm
perl-module
microsoft-translator
solid-principles
uistoryboardsegue
windows-scripting
dsx
extjs4
mindstorms
es6-promise
freerdp
pci
pseudo-element
federation
jquery-masonry
abbyy
biological-neural-network
untagged
liclipse
asp.net-mvc-custom-filter
email-notifications
file-management
singly-linked-list
flotr2
uiswitch
pddl
lidar
storage-duration
parsoid
linqtocsv
dbfit
delphi-10-seattle
mtp
double-quotes
translate3d
dhc
linegraph
sql-server-ce-3.5
simpleadapter
publish-actions
iphone-privateapi
first-class-functions
directcompute
spread-toolkit
deepzoom
android-c2dm
dfsort
inputview
showcaseview
simpleaudioengine
micro-orm
wow64
hla
kmz
src
timestamp-with-timezone
qbwc
google-website-optimizer
sticky-footer
adaboost
letter-spacing
nsinvocation
intel-8080
bapi
f2c
demoscene
combinators
nscollectionviewitem
regexbuddy
maemo
polyglot
dynamic-websites
68hc11
stsadm
mud

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App