in reply to Regex not matching as expected
The following regex checks for an integer followed by a dot then by whitespace as the beginning of the line/string, then uses an 'or' to check for either "N/A" or an integer, each with a following whitespace, twice. It then captures the next following word characters.
^\d+\.\s+/(?:N\/A\s+|\d+\s+){2}(\w+)
|
|---|