File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ Daily Coding Problem #25
3+
4+ This problem was asked by Facebook.
5+
6+ Implement regular expression matching with the following special characters:
7+ . (period) which matches any single character
8+ * (asterisk) which matches zero or more of the preceding element
9+
10+ That is, implement a function that takes in a string and a valid regular
11+ expression and returns whether or not the string matches the regular
12+ expression.
13+
14+ For example, given the regular expression "ra." and the string "ray",
15+ your function should return true. The same regular expression on the
16+ string "raymond" should return false.
17+
18+ Given the regular expression ".*at" and the string "chat", your function
19+ should return true. The same regular expression on the string "chats"
20+ should return false.
21+
22+ """
You can’t perform that action at this time.
0 commit comments