Regular Expressions

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 39

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

40 Terms

1

[]

Match single value in range that is listed inside the bracket.

New cards
2

-

Used as range separator. To search, must be first in list

New cards
3

^

Matches the starting position within the line

New cards
4

[^ ]

Matches a single character that is not contained within the brackets

New cards
5

$

Matches last character. Must be at end of the expression

New cards
6

.

Match any character in position

New cards
7

\d

Matches any single decimal digit; this is equivalent to the class [0-9].

New cards
8

\D

Matches any single non-digit character; this is equivalent to the class [^0-9].

New cards
9

\s

Matches any single whitespace character; this is equivalent to the class [\t\n\r\f\v].

New cards
10

\S

Matches any single non-whitespace character; this is equivalent to the class [^ \t\n\r\f\v].

New cards
11

\w

Matches any single alphanumeric character; this is equivalent to the class [a-zA-Z0-9_].

New cards
12

\W

Matches any single non-alphanumeric character; this is equivalent to the class [^a-zA-Z0-9_].

New cards
13

*

Match previous character 0 or more times (lo*se) 🡪 lse, loose, looose

New cards
14

+

Match previous character 1 or more times (lo+se) 🡪 lose, loose, loose

New cards
15

?

Match previous character 1 or 0 times (lo?se) 🡪 lse, lose

New cards
16

{X}

Match previous character exactly x times

New cards
17

{x,y}

Match at least x, but no more than y (ba{1,4}t) 🡪 bat, baat, baaat, baaaat

New cards
18

{x,}

Match at least x or more times

New cards
19

()

grouping, seperaed by |

New cards
20

(?:

Non capturing group

New cards
21

\

Escape

New cards
22

/

Delimiter

New cards
23

|

Alteration or logical OR

New cards
24

\<

Match beginning of word

New cards
25

\>

Match the end of the word

New cards
26

\n

New line

New cards
27

\r

Carriage return

New cards
28

\t

tab

New cards
29

[[:alnum:]]

Alphanumeric characters

New cards
30

[[:alpha:]]

Alphabetic characters

New cards
31

[[:blank:]]

Blank characters, such as space and tab

New cards
32

[[:cntrl:]]

Control characters. In ASCII, these characters have octal codes 000 - 037 and 177 (DEL)

New cards
33

[[:digit:]]

Digits: 0-9

New cards
34

[[:graph:]]

Graphical characters: '[[:alnum:]]' and '[[:punct:]]'

New cards
35

[[:lower:]]

lower-case letters

New cards
36

[[:print:]]

Printable characters: '[[:alnum:]]', '[[:punct:]]', and space

New cards
37

[[:punct:]]

Punctuation characters

New cards
38

[[:space:]]

Space characters, including tab, newline, vertical tab, form feed, carriage return, and space

New cards
39

[[:upper:]]

Upper-case letters

New cards
40

[[:xdigit:]]

Hexadecimal digits

New cards

Explore top notes

note Note
studied byStudied by 89 people
890 days ago
4.5(4)
note Note
studied byStudied by 11 people
879 days ago
5.0(1)
note Note
studied byStudied by 1 person
19 hours ago
4.0(1)
note Note
studied byStudied by 19 people
979 days ago
5.0(1)
note Note
studied byStudied by 22 people
799 days ago
5.0(1)
note Note
studied byStudied by 15 people
816 days ago
5.0(1)
note Note
studied byStudied by 11 people
965 days ago
5.0(1)
note Note
studied byStudied by 127 people
616 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (21)
studied byStudied by 5 people
635 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 2 people
148 days ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 26 people
391 days ago
5.0(1)
flashcards Flashcard (173)
studied byStudied by 1 person
13 days ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 14 people
760 days ago
5.0(3)
flashcards Flashcard (30)
studied byStudied by 18 people
445 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 7 people
361 days ago
4.0(1)
flashcards Flashcard (84)
studied byStudied by 74 people
352 days ago
5.0(1)
robot