Saturday, October 29, 2016

Matching Start & End - Hacker Rank Solutions

The ^ symbol matches the position at the start of a string.

The $ symbol matches the position at the end of a string.

Task
You have a test string . Your task is to match the pattern 
Here,  denotes a word character, and
 denotes a digit.
 must start with a digit  and end with . symbol.
 should be  characters long only.
Note
This is a regex only challenge. You are not required to write code.
You have to fill the regex pattern in the blank (_________).
----------------------------------------------------------------------------------------------------

Matching Start & End - Hacker Rank Solutions

The regex pattern used is:
Regex_Pattern = '^\d\w\w\w\w\.$'

Task
You have a test string . Your task is to match the pattern 
Here,  denotes a word character, and  denotes a digit.
 must start with a digit  and end with . symbol.
 should be  characters long only.
Note
This is a regex only challenge. You are not required to write code.
You have to fill the regex pattern in the blank (_________).
----------------------------------------------------------------------------------------------------

Matching Start & End - Hacker Rank Solutions

The regex pattern used is:
Regex_Pattern = '^\d\w\w\w\w\.$'

No comments:

Post a Comment

Powered by Blogger.