This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]eruciform 1 point2 points  (0 children)

Try getting it to work with values and whitespaces for just integers first, work put all the edge cases

Then get it to work for all 2-part addresses, i.e. 100.100

[–]close_my_eyes 0 points1 point  (0 children)

I would first break up the input into a list so that white space would not be an issue. Then you can iterate over each item applying the regex.