source: people/peter.buschman/backup_monitoring/parsing/expressions/_expressions.py@ 976

Last change on this file since 976 was 976, checked in by peter, on Dec 6, 2011 at 10:19:33 AM

Raw checkin of current NetBackup / TSM parsing code.

File size: 459 bytes
Line 
1###
2### Common Regular Expressions
3###
4import re
5
6##
7## Match a decimal integer
8##
9re_integer = re.compile('^\d+$')
10
11##
12## Match a floating point value
13##
14re_float = re.compile('^\d+\.\d+$')
15
16##
17## Scientific E Notation
18##
19## +4.57087000000000E+002
20##
21re_enotation = re.compile('^([+-])?(\d+)\.(\d+)[eE]([+-])(\d+)$')
22
23##
24## SQL DATETIME
25##
26re_sql_datetime = re.compile('^(\d\d\d\d)-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d)\.?(\d*)$')
Note: See TracBrowser for help on using the repository browser.