I need to find string with length of 12 and contains in the 7 position the char "U".
I have the following strings:
SUPERHUMANLY
DFGDFGDFGGFG
SUPSRHTMANLY
DFGDFGUFGGFG
Only the following should matched:
SUPERHUMANLY
DFGDFGUFGGFG
Following this link I know how to get match on the 7 position:
^.{6}[U]
But I want to get match on only letters with specific length, so I tried ^.{6}[U]{12}
, ^(.{6}[U]){12}
and ^.{6}[U].{12}
without success.
How can I combine the length of the string with the position ?