in reply to regex not working
doesn't match your data. Particularly the milliseconds./^(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)$/
Update: a pattern that matches the data you show is:
Update 2: a pattern that matches with optional fractional seconds is:/^(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+\.\d+)$/
/^(\d+)-(\d+)-(\d+) (\d+):(\d+):([0-9.]+)$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex not working
by gwhite (Friar) on Jan 29, 2005 at 16:37 UTC | |
by ZlR (Chaplain) on Jan 29, 2005 at 18:18 UTC | |
by sh1tn (Priest) on Jan 29, 2005 at 17:37 UTC | |
by saskaqueer (Friar) on Jan 29, 2005 at 17:51 UTC | |
by sh1tn (Priest) on Jan 29, 2005 at 17:41 UTC |