Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 527 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 527 Bytes

Re.split()

https://www.hackerrank.com/challenges/re-split

Problem

You are given a string s consisting only of digits 0-9, commas ,, and dots .

Your task is to complete the regex_pattern defined below, which will be used to re.split() all of the , and . symbols in s.

It’s guaranteed that every comma and every dot in is preceeded and followed by a digit.

Sample Input 0

100,000,000.000

Sample Output 0

100
000
000
000

My Solution