void () { RegexFacade regex = RegexFacade.regex("[0-9]+"); StringWithId string = new StringWithId("12:00pm"); MatchData match = regex.match(string, 2, -1, true, null); assertEquals(new TextMateRange(3, 5), match.codePointRange(string.bytes)); }