Perl Regular Expressions

Perl Regular Expressions

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

\B

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (25)

Section 1

(25 cards)

\B

Front

Matched anything but a boundary word.

Back

\d

Front

Matches a digit character. Same as [0-9].

Back

()

Front

Encloses a character grouping or defines a back reference.

Back

$

Front

Matches theend of a line.

Back

/string/s

Front

Treat a string as a single line; ignore newline characters.

Back

a*

Front

Matches any string containing zero or more a's.

Back

/string/

Front

Find a substring.

Back

\w

Front

Matches any string containing solely underscore and alphanumeric characters.

Back

\s

Front

Matches a whitespace character.

Back

\A

Front

Matches only at the beginning of a string.

Back

a?

Front

Matches any string containing zero or one a's.

Back

/string/u

Front

Match only the first occurence of the pattern.

Back

/string/i

Front

Perform a case insensitive search

Back

/string/x

Front

Ignore whitespace and comments.

Back

[]

Front

Encloses a character class.

Back

/string/m

Front

Treat a string as several. ie multiple lines

Back

\W

Front

Matches a string, omitting the underscore and alpanumeric charcters.

Back

a+

Front

Match any string containing at least one 'a'.

Back

\D

Front

Matches a non-digit character.

Back

/stri{2,4}/

Front

Find's 'stri' followed by 2 to 4 occurrences of 'r'.

Back

\b

Front

Matches a boundary word.

Back

\

Front

Quotes the next metacharacter.

Back

^

Front

Matches the beginning of a line or matches any character except for thenew line.

Back

\S

Front

Matches a nonwhitespaces character.

Back

/string/g

Front

Find all occurrences of a string.

Back