You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to find all occurrences of dates in an email: each occurrence and the startIndex and endIndex of the occurrence. I would like to use a human-readable regex builder like JavaVerbalExpressions, but looking at the API I see no way to extract the match details like startIndex and endIndex, I only see test and testExact returning a boolean.
Is it possible to loop over all matches and get the start and end indexes and all match details (group names etc)? Thanks!
The text was updated successfully, but these errors were encountered:
josdejong
changed the title
How to find the location of a match result?
How to get the startIndex and endIndex of match results?
Oct 25, 2019
I see the VerbalExpression class has an internal Pattern pattern property, I think exposing this pattern via a getter would give me all freedom to fine all matches and the start and end indexes.
I have to find all occurrences of dates in an email: each occurrence and the startIndex and endIndex of the occurrence. I would like to use a human-readable regex builder like JavaVerbalExpressions, but looking at the API I see no way to extract the match details like startIndex and endIndex, I only see
test
andtestExact
returning a boolean.Is it possible to loop over all matches and get the start and end indexes and all match details (group names etc)? Thanks!
The text was updated successfully, but these errors were encountered: