I'm trying to come up with a search/replace expression that will convert from Oracle style inserts with timestamp fields to insert statements for another database.
Basically, I want to convert strings like:
to_timestamp('13-SEP-09 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM')
to just:
'13-SEP-09 12.00.00.000000000 PM'
I've tried several expressions in the IDEA's search/replace box, but I still can't quite get it. This one:
to_timestamp(.[^,]*,.[^)]*)
replaced with $1 ends up matching the string I want except the close parenthesis, but then only deletes the first part. I end up with:
('13-SEP-09 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM')
I really don't understand what's happening here.