You are viewing limited content. For full access, please sign in.

Question

Question

Pattern Matching: ignore the first line

asked on September 23, 2019

Hi,

 

I want to ignore the values from first line and get the values from line 2 and line 3.

 

should become something like this:

Regards,

 

0 0

Answer

SELECTED ANSWER
replied on September 24, 2019 Show version history

You can try something like

[\r\n]([^\r\n]+)

The "[\r\n]" denotes return/new line character.

The "(" denotes the start of a match group.

The "[^\r\n]+" denotes any non return/new line character 1 or more times.

The ")" denotes the end of the match group.

Basically, we are looking for an line feed before the line we capture.  This means that we do not capture the first line since there is no line feed before it.

 

3 0

Replies

replied on September 24, 2019

adding a "\n" should do the job, it replaces a line skip.

Hope it helps

Regards

 

 

0 0
replied on September 25, 2019

Thank you Bert, it works !

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.