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

Question

Question

Remove spaces from connector token using regular expression

asked on February 26, 2020

Hello,

I have a connector profile set up on Google Chrome. I am currently using a regular expression to return a certain line of text from the token. However, the line returns with the text I need along with 4-5 spaces in front of it which then causes the repository search to return no results. Can someone tell me how to modify my current regular expression to remove spaces before the text I need?

 

0 0

Answer

SELECTED ANSWER
replied on February 26, 2020

You might try adding the white space match (\s+) into your expression:

(?:[^\n]*\n){128}\s+(.+)

1 0
replied on February 26, 2020

Andrew,

 

Thank you! That did the trick!

0 0

Replies

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

Sign in to reply to this post.