Remove DateTimestamp from String Options

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
steve1040
Posts: 39
Joined: Fri Oct 13, 2006 2:19 am

Remove DateTimestamp from String Options

Post by steve1040 »

All,
I'm working with a list of filenames that contain a datetime stamp.



example: "Change 69231 Ticket2008-10-01 14.48.18.953.xls"
example: "Somename2008-10-01 14.48.18.953.pdf"
example: "AnotherReport2008-10-01 14.48.18.953.htm"


Would like to change to "Change 69231 Ticket.xls" or "Somename.pdf" or "AnotherReport.htm"

Looking for an expression
How can I find and delete the timestamp within a string like the
above.

Thx
Steve
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{3}
Replace with: [nothing]

[X] Regular expression

Replace All
Post Reply