Cody

Solution 1417065

Submitted on 15 Jan 2018 by Daniel Rubin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
s = '508-647-7000, (508) 647-7001, 617-555-1212, 1-800-323-1234, 704 555-1212'; a = {'508','617','704','800'}; assert(isequal(refcn(s),a))

0 13 29 43 59 1 5 9 16 21 25 31 35 39 45 47 51 55 61 65 69 3 7 12 18 23 28 33 37 42 45 49 53 58 63 67 72 1 5 16 21 31 35 47 51 61 65 '508' '617' '704' '800'

2   Pass
s = '212-657-0260; (888) 647-7001; 336 565-1212; +1-800-323-1234'; a = {'212','336','800','888'}; assert(isequal(refcn(s),a))

0 13 29 43 1 5 9 16 21 25 31 35 39 46 48 52 56 3 7 12 18 23 28 33 37 42 46 50 54 59 1 5 16 21 31 35 48 52 '212' '336' '800' '888'