Is it possible to create a regex that only evaluates the first n number of characters in a string?
For example, given the strings:
Line 1: The quick brown fox jumped over the lazy dog.
Line 2: There was another fox that was not so quick.
I need a regex that only searches for the word quick within the first 15 characters. Such that line1 would match, but line2 would not match.
I'm interested in a single regex without combining with other commands, such as cut -c1-15, or something similar.
I understand that regex 'lookarounds' might be a possible solution, but can't seem to find anything that allows referencing position from the start of the input string.