1
I would like to select an entire row that contains a desired string. For example:
String: "BLUE LED should light"
text:
When pressing the button the BLUE LED should light up for 5 seconds according to the characteristics of the test.
I would like to select the entire line that contains the string "LED BLUE should light" through a Regex that can be used in Notepad++ or python. Could someone help me? Thank you!!
In the case of Notepad++, if you want to find a entire line (that is, do the matching whole row) if it contains the string
LED AZUL
, just use regular expression:^.*LED AZUL.*$
. The^
indicates the beginning of the line and the$
indicates the end of the line. O.*
indicates any character, in any quantity (between the beginning of the line and the BLUE LED, and then between the BLUE LED and the end of the line).– Luiz Vieira
Thank you @Luizvieira !!
– Diego Sanches Garcia