Question: This raw string represents a regular expression: r ' d { 3 } [ - ] ( d { , 3 } )

This "raw" string represents a regular expression: r'\d{3}[-](\d{,3}).\d{4}$' Which of the following strings will it match?
A.'123-45.7890'
B.'123-(456)x7890$'
C.'123-456x7890'
D.'123456-78901'
E.'123-4567x7890'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!