Finding strings that start in a specific column
-
Can anyone please advise how to search for character strings that start in a specific column?
-
Well you aren’t very specific, but maybe this can get you started:
Find:
(?-s)^.{3}\K.
Search mode: regular expressionThis will find a single character beginning in column 4 of every line that has 4 or more characters.
Yep, I realize that there is going to be more to your statement-of-problem after you read this response.
-
@alan-kilborn , can you please explain the syntax of this statement? I don’t see anything that specifies column 4. Thanks very much.
-
@e5584071 said in Finding strings that start in a specific column:
I don’t see anything that specifies column 4.
It’s related to the 3 (one less than 4).
The syntax is saying skip the first 3 characters on a line and match on something starting in column 4.
Exact syntax can be looked up in the user manual. -
@alan-kilborn , thanks very much. This is exactly what I needed. Have a great day!