add methods for getting match start and end indices in a body, rather than just textual context