Checking whether the given string matches with RegEx pattern | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 2

Checking whether the given string matches with RegEx pattern

Input format:the first input contains string which denotes input string The second input contains string which denotes RegEx pattern Output format : check whether the given string matches with the RegEx pattern. if string matches with the pattern print"Matched".otherwise, print"does not match" sample input: ttteeaab t+e+a+b sample output : Matched

5th Jul 2020, 4:52 AM
Revathi
3 Réponses
+ 5
Why people can't ask just a question?
5th Jul 2020, 7:00 AM
Abhay
Abhay - avatar
+ 2
I don't get it, you've got any bug or need help on your code? Try writing down your code and share it with us if you need any help.
5th Jul 2020, 5:08 AM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 2
Abhay sometimes it is asked to publish some attempt at code in addition to the question so that : - it encourages people to make a start thinking about the problem for themselves. - it clarifies what is actually misunderstood, so answers are more to the point - it stops people who would be tempted to just ask the community to solve their own schoolwork.
5th Jul 2020, 8:04 AM
ifl
ifl - avatar