adplus-dvertising
frame-decoration

Question

What does the function re.match do?

a.

matches a pattern at the start of the string

b.

matches a pattern at any position in the string

c.

such a function does not exist

d.

none of the mentioned

Posted under Python

Answer: (a).matches a pattern at the start of the string

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the function re.match do?

Similar Questions

Discover Related MCQs

Q. What does the function re.search do?

Q. The character Dot (that is, ‘.’) in the default mode, matches any character other than _____________

Q. The expression a{5} will match _____________ characters with the previous regular expression.

Q. ________ matches the start of the string.
________ matches the end of the string.

Q. Which of the following will result in an error?

Q. Choose the function whose output can be: <_sre.SRE_Match object; span=(4, 8), match='aaaa'>.

Q. Which of the following functions clears the regular expression cache?

Q. Which of the following functions results in case insensitive matching?

Q. The function of re.search is:

Q. Which of the following functions creates a Python object?

Q. Which of the following pattern matching modifiers permits whitespace and comments inside the regular expression:

Q. The function of re.match is:

Q. The special character \B matches the empty string, but only when it is:

Q. Which of the following special characters matches a pattern only at the end of the string?

Q. Which of the following functions returns a dictionary mapping group names to group numbers?

Q. Which of the following statements regarding the output of the function re.match is incorrect?

Q. To open a file c:\scores.txt for reading, we use

Q. To open a file c:\scores.txt for writing, we use

Q. To open a file c:\scores.txt for appending data, we use

Q. To read two characters from a file object infile, we use