Regular Expressions Flashcards

1
Q

Regular Expressions

A

a character or a sequence of characters that represent a string or multiple strings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

matches(String regex)

A

returns true if a string matches the given regular expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This method allows much more flexibility in your code.

A

matches()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Indicates one or more occurrences of a specified character

A

+

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Matcher’s find()

A

scans the input sequence looking for the next subsequence that matches the pattern.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Dot

A

Represents any single character in regular expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Pattern

A

Stores the format of a regular expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Repetition operator

A

Indicates the number of times a specified character appears in a matching string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

split( )

A

Used to specify where the operator wishes to separate the given string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

*

A

Indicates zero or more occurrences of a specified character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly