Regular Expressions

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

[]

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 17 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 93 people
... ago
5.0(3)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 74 people
... ago
5.0(2)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
4.0(1)
note Note
studied byStudied by 551 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (273)
studied byStudied by 33 people
... ago
5.0(1)
flashcards Flashcard (118)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (102)
studied byStudied by 35 people
... ago
5.0(2)
flashcards Flashcard (55)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (223)
studied byStudied by 29 people
... ago
5.0(2)
flashcards Flashcard (30)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (27)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (249)
studied byStudied by 11 people
... ago
5.0(1)
robot