Given an input string of only lower case letters and an integer N. I need a regular expression to extract all sub-strings of length N from the input st
N
You can use this lookahead regex to get all 3-character strings:
(?=([a-z0-9]{3}))