Useful set of regular expressions

From Notes_Wiki
Revision as of 13:48, 7 April 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Regular expressions > Useful set of regular expressions

Search in un-commented lines

To search for a pattern in uncommented lines one can use expression of the form

^[^\#] ... $

For example to search for 10. in uncommented lines one can use:

^[^\#].*10\..*$