|
PSCF v1.3.3
|
Class to search for text in a file. More...
Public Member Functions | |
| __init__ (self) | |
| Constructor. | |
| addFilter (self, filter) | |
| Add a regular expression string to the list. | |
| clearResults (self) | |
| Clear results list (but not filters) | |
| grep (self, filename) | |
| Search for lines in the file that match any filter. | |
Class to search for text in a file.
Attributes:
| pscfpp.text.Grep.__init__ | ( | self | ) |
| pscfpp.text.Grep.addFilter | ( | self, | |
| filter ) |
| pscfpp.text.Grep.clearResults | ( | self | ) |
| pscfpp.text.Grep.grep | ( | self, | |
| filename ) |