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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login