Regular expression to change Hour:Min:Sec time to Min:Sec using the Search and Replace tool
Hi,
I think the title says it all, but I've used a script to export a project from an NLE as a html file with a bunch of images and timecodes within table cells. For example, In=00:00:34 and Out=00:01:30 needs to be converted In=0:34 and Out=1:30. I think the Search and Replace is the most simple way of working that, but I've not experience with Regular Expressions (or much in that regard) so would really appreciate if someone could give me a hand writing the Regular Expression I need to achieve this.
Thanks in advance,
James
Okay, so an example row is:
<tr>
<td align="left" valign="top"><p align="left"><img src="Snapshot At Event Start [00-01-22-19].jpg"><br>
<strong>In: </strong>1:22<br>
<br>
</p></td>
<td align="left" valign="top"><p align="left"><img src="Snapshot At Event End [00-01-24-25].jpg"><br>
<strong>Out: </strong>1:24<br>
</p></td>
<td width="100%" align="left" valign="top"><p><strong>Cut to League Video</strong></p>
<p><strong>Duration</strong>: 2<br>
<strong></strong></p></td>
</tr>
I need to change it to:
<tr>
<td align="left" valign="top"><p align="left"><img src="Snapshot At Event Start [00-01-22-19].jpg"><br>
<strong>In: </strong>1:22 seconds<br>
<br>
</p></td>
<td align="left" valign="top"><p align="left"><img src="Snapshot At Event End [00-01-24-25].jpg"><br>
<strong>Out: </strong>1:24 seconds<br>
</p></td>
<td width="100%" align="left" valign="top"><p><strong>Cut to League Video</strong></p>
<p><strong>Duration:</strong> 2 seconds<br>
<strong></strong></p></td>
</tr>
The script itself is something I found somewhere on the internet - it's for Sony Vegas.
I've highlighted the changes with bold underlined italics.
Thanks for you help, guys,
James
Similar Messages
-
i have 12 cent credit and i wanna change country but its says i have to use the credit and theres no app for 12 cent
Click here and request assistance.
(90578) -
GUI Based tool for search and replace using regular expression
Hi,
I have developed this small tool which can be used for search and replace in multiple files using reqular expressions.
Features:
1. Full regular expression
2. GUI based with Highlighted results
3. Preview for replace available
4. Pure Java based.
5. Its like unix sed and grep
Please visit below site for download/more information :
http://sourceforge.net/projects/regexsearchrepl/
Thanks,
Hitesh ViseriaI agree with you, it cannot compete grep/sed/awk combination. I couldnt find anything even close to grep/sed for windows which will also have a preview and most important, free. That is what made me write this tool. I am trying to
improve its performance and more features like history etc.
Any suggestions on additional features are most welcome. -
I have tried to changed my Apple ID and every time I try to use the new Apple ID it won't let me because when i try to update an app the old ID comes up to sign in. I deleted that account so it will not let me use my new one.
Content and Apple IDs -
Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple Id to another. Apple does not merge Apple IDs. You will never be able to access your content bought with another Apple ID with a new ID. -
i have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?
i have 4 ricco md2 mini USB speakers and i can't get them to play at the same time. i have tried using the aggregate device feature but have had no luck. i can play each pair separately, but not together. what should i do?
-
Hi i received the nano 7th gen for Christmas and I only seem to get 5 hours of battery life. I use the Bluetooth and Nike app so I expect more drain on the battery. But I got more time out of running with my iPhone. Does this sound normal? I thought I should get close to 30 hrs of just play time alone.
ALso, my wife got me the Belkin armband to run with the nano but I sweat through the band resulting in the back of the iPod to get wet. Surely this is not good. Anyone have a recommendation for an armband that keeps moisture away from the pod?iPod Nano are small and they don't use Wi-Fi access so you get less power time on a Nano. As for iPhone, since you got apps, Wi-Fi + 3G access, and everything else, they give you more time so you can keep using. Nanos are ment to listen to music, listen to radio, view your photos, watch videos (without Wi-Fi) and since you got BlueTooth on the nano, it counts as wireless access so it drains your battery faster.
-
Could I use two regular computers (one acts master , another one acts as slave using the Ethercat Internet Card) to achieve realtime communication using the Ethercat and Labview Real Time Module? if it could, what hardware should I purchase from the NI ?
Thank you!Hi Xiaolin,
NI doesn't offer Windows based Ethercat master or slave software. Only LabVIEW RT can run the Ethercat driver.
However, you could use a LabVIEW RT target as an Ethercat master and use the Ethercat Internet Card with a slave PC (note: I think this will work from the Beckhoff description of the card you are describing. The card should integrate like any other non-NI slave. However I haven't tested the setup and don't advise saying it will work until you have tried).
You can use any NI RT target with two ethernet ports as the Ethercat master. This could be a cRIO, PXI or RT Desktop.
Jesse Dennis
Design Engineer
Erdos Miller -
Why does my Airport Express say "self assigned IP address"? No IP address for the ethernet, and it is not connecting to my cable router any longer...
Some cable providers.....like mine, a well known company......seem to take anywhere from a few moments to sometimes up to 30 minutes to allow their equipment back at the cable company to fully reset and issue a new fresh connection.
So, it would not hurt to leave things powered down for 15-20 minutes or more when you perform the reset that John Galt suggests. -
I am considering purchasing the Mac mini for home studio audio production using Adobe Audition and a USB microphone. Will the base mini model run these programs?
The base mini has 4GB and a 5400 RPM hard drive. It is slow to start up and slow to launch large application such as Word (and I'd assume Adobe Audition) due to the slow drive. I've not used a new 4GB model, just the 8GB model, and the 8GB model (except for the slow drive) handles everything I've thrown at it, including running Photoshop, Word, Safari, and Mail at the same time but there is sometimes a delay switching between programs as the swapfile is updated. Overall I was not happy with the 5400 RPM drive (perhaps because I have MBA and iMac with Fusion drive) so I eventually upgraded it with an SSD. Now the mini is truly a warrior.
-
I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I have viewed some videos and read numerous articles but haven't found the one to help me. Please point me in the best direction. Thank you Vincent TC
For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head. Todd gets a blurred dark tone pretty much regardless of the options he uses.
IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt. I would not choose to use the Patch tool in this situation. Content Aware Fill makes a better stab at it. -
I have bought an used Iphone 5. I dont have the password for the existing login id of the old owner. How do i use the phone and change the log in id?
Unfortunatly the only way that you can get it off is to get the old user to input the password. You may need to contact that old user and see if he can put the old password in. hope this helps.
-
My ipad mini is frozen and won't allow me to use any buttons. I can't access settings to get the serial number for Apple Support and I can't read the serial number from the back. It's too small and shadowy. There is a message that reads "ICloud Backup--This ipad hasn't been backed up in 2 weeks. Back ups happen when this ipad is plugged in,locked, and connected to Wi-Fi."
It won't allow me to shut if off using the on and off button. I stuck a paper clip into the tiny reset button, but nothing happens.
Has anyone else had this problem? Please help,
VmcalpinThis is the most common "fix" when devices are behaving strangely. It only takes a minute and there's no risk of lost data. This is the reason you'll see this fix being suggested so often.
-
My husband just got an iphone. I've had mine for a while. We use the same email address so I thought we could use the same apple id and password. But now it appears everything on my phone also shows up on his phone and vis versa, even "Notes." Not good. How do I unlink them?
Read this planning tips:
iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family -
On my iPad Mini, when I delete an email from the inbox (and it goes into Trash), it immediately deletes that email from the server (ATT/Yahoo). I've called support for both ATT and Apple and can't find a way to have the emails remain on the server.
My husband and I share an email address and if he misses a day checking email on his notebook, he doesn't receive the items that I have sent to Trash on my iPad Mini.
Appreciate suggestions.
[The curious thing is, if I "move" the deleted emails from Trash on my iPad Mini into the Inbox, I can go to my notebook, open my online email and they are back in my ATT/Yahoo Inbox.]Is your Yahoo account set up as POP3 or IMAP?
-
How can I use my time capsule as a time machine backup without using it wirelessly and not as a wireless router?
bzb888 wrote:
I have a wireless transmitter already, would like to use the capsule just as a back up drive, I tried hooking up from the ethernet port on the imac to the one of the ports on the capsule but then my Wifi would not work. do I hook the cable to the port with the circle or the arrows?
It is better to have the TC as part of the main network in bridge. You do not need to run wireless.
If you want to use the TC plugged in by ethernet and still use wireless for internet, that is possible but the setup is rather more complicated.. the computer must not get confused about which device to use as a gateway or dns server.
See info in this thread on setting this up.
https://discussions.apple.com/thread/4817218?tstart=30
I need to add.. a USB drive would be cheaper, faster and more reliable. It is really poor use of a TC.
Maybe you are looking for
-
Selecting values between 2 dates for an SQL query report region
I have a region where im selecting between 2 dates select hp.NAME, hp.VALUE, hp.UPDATEDATE, hp.DESCRIPTION, hp.UPDATE_COMMENT, hp.HASH, hp.IDCATEGORY from HIST_REPORT hr, HIST_PARAM hp where hp.dbid = hr.dbid and hr.id = :P7_ID and hp.UPDATEDATE betw
-
AD Task rejected during Provisioning in AD through OIM 11g
Hi, While provisioning a OIM user into AD, AD ID got created but there was one task called "Get Object GUID Created" was rejected. Below is the error message we are receiving. "cn=i696801Doesn't Exist:[LDAP: error code 32 - 0000208D: NameErr: DSID-03
-
I have downloaded a tv series on my IPad. I have watched about half of it. Now when I try to watch the next episode it says movie cannot be loaded. Any suggestions?
-
How do I Apply the Same Style to All Frames of a GIF Animation
Making a simple GIF. I have 8 Frames. Each Frame is a seperate Layer. I want to stroke all the frames in one shot. How can I do that?? Thanks
-
I don't have the extract assets function despite the update
I have just updated photoshop cc (14.2.1) but the I don't have the "extract assets" function in the menu "file". It doesn't exists.