Python sre_constants.SRE_FLAG_IGNORECASE Examples
The following are 5
code examples of sre_constants.SRE_FLAG_IGNORECASE().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sre_constants
, or try the search function
.
Example #1
Source File: verinfo.py From aumfor with GNU General Public License v3.0 | 5 votes |
def calculate(self): """Returns a unique list of modules""" addr_space = utils.load_as(self._config) if self._config.REGEX is not None: try: if self._config.IGNORE_CASE: module_pattern = re.compile(self._config.REGEX, flags = sre_constants.SRE_FLAG_IGNORECASE) else: module_pattern = re.compile(self._config.REGEX) except sre_constants.error, e: debug.error('Regular expression parsing error: {0}'.format(e))
Example #2
Source File: verinfo.py From volatility with GNU General Public License v2.0 | 5 votes |
def calculate(self): """Returns a unique list of modules""" addr_space = utils.load_as(self._config) if self._config.REGEX is not None: try: if self._config.IGNORE_CASE: module_pattern = re.compile(self._config.REGEX, flags = sre_constants.SRE_FLAG_IGNORECASE) else: module_pattern = re.compile(self._config.REGEX) except sre_constants.error, e: debug.error('Regular expression parsing error: {0}'.format(e))
Example #3
Source File: verinfo.py From vortessence with GNU General Public License v2.0 | 5 votes |
def calculate(self): """Returns a unique list of modules""" addr_space = utils.load_as(self._config) if self._config.REGEX is not None: try: if self._config.IGNORE_CASE: module_pattern = re.compile(self._config.REGEX, flags = sre_constants.SRE_FLAG_IGNORECASE) else: module_pattern = re.compile(self._config.REGEX) except sre_constants.error, e: debug.error('Regular expression parsing error: {0}'.format(e))
Example #4
Source File: verinfo.py From DAMM with GNU General Public License v2.0 | 5 votes |
def calculate(self): """Returns a unique list of modules""" addr_space = utils.load_as(self._config) if self._config.REGEX is not None: try: if self._config.IGNORE_CASE: module_pattern = re.compile(self._config.REGEX, flags = sre_constants.SRE_FLAG_IGNORECASE) else: module_pattern = re.compile(self._config.REGEX) except sre_constants.error, e: debug.error('Regular expression parsing error: {0}'.format(e))
Example #5
Source File: verinfo.py From volatility with GNU General Public License v2.0 | 5 votes |
def calculate(self): """Returns a unique list of modules""" addr_space = utils.load_as(self._config) if self._config.REGEX is not None: try: if self._config.IGNORE_CASE: module_pattern = re.compile(self._config.REGEX, flags = sre_constants.SRE_FLAG_IGNORECASE) else: module_pattern = re.compile(self._config.REGEX) except sre_constants.error, e: debug.error('Regular expression parsing error: {0}'.format(e))