Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

notepad++ how to use regex to find lines that have two capital letters in a row?

how to use regular expression to find strings containing two capital letters in a row?

   ^([A-Z\s]+)$ 

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

^.*[A-Z]{2}.*$ matches as follows

^        Beginning of the line
.*       Any char for any number of times
[A-Z]{2} Two consecutive capital letters 
.*       Any char for any number of times
$        End of line

Find a live example here:
https://regex101.com/r/m2hPbh/1

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading