Results 1 to 5 of 5
  1. #1
    CC Grandmaster
    Join Date
    Apr 2008

    Removing Clock Times from pgn Files

    Thanks to Shaun Press for this trick:
    My most recent problem was that the pgn files from the 2020 Australian Championship had the clock times included as comments. Normally this isn't a problem as you can strip comments using chessbase, but as I don't have that on my laptop, it required a different solution (that wasn't manual deletion). \{[\s\S]*?}\s was the magic incantation used in Brackets, which was sufficient to get the file into something I could use more easily. And as proof, here is a nice win by Jack Puccini from yesterdays round.

    He used Brackets, but I'd suggest Notepad++, which is just an upgraded version of the basic Windows text editor Notepad. In the string to be replaced, use \{[\s\S]*?}\s and leave the replacement string blank. Then this:

    1. e4 {[%clk 01:30:53]} {[%emt 00:13:49]} d5 {[%clk 01:30:37]} 2. exd5 Qxd5
    {[%clk 01:30:59]} 3. Nc3 {[%clk 01:31:26]} {[%emt 00:00:07]} Qd8 {[%clk
    01:31:13]} {[%emt 00:00:15]} 4. d4 {[%clk 01:31:36]} {[%emt 00:00:22]} Nf6

    will become this:

    1. e4 d5 2. exd5 Qxd5
    3. Nc3 Qd8 4. d4 Nf6

    which (with a bit of tidying up) will look a lot better in the pgn viewer.

    I believe that Chesspad and Tarrasch can also do something similar.

  2. #2
    CC Grandmaster Adamski's Avatar
    Join Date
    Nov 2007
    Penrith, NSW
    Thanks - a tip I may get to use.
    God exists. Short and to the point.
    President of, and arbiter at, Rooty Hill RSL Chess Club. See

    Psephological insight. "Controversial will only lose you votes. Courageous will lose you the election." Sir Humphrey Appleby on Yes Minister.

    Favorite movie line: Girl friend Cathy to Jack Ryan in "Sum of all Fears". "What kind of emergency does an historian have?".

  3. #3
    Monster of the deep Kevin Bonham's Avatar
    Join Date
    Jan 2004
    Useful, thanks for posting.
    Moderation Requests: All requests for, comments about, or questions about moderation of any kind including thread changes must be posted in the Help and Feedback section and not on the thread in question. (Or by private message for routine changes or sensitive matters.)

    ACF Newsletter Information - All Australian players and administrators should subscribe and check each issue for relevant notices

    My psephology/politics site (token chess references only) : Politics twitter feed

  4. #4
    CC Grandmaster Capablanca-Fan's Avatar
    Join Date
    Jan 2004
    Atlanta, GA (formerly Brisbane, and before that Wellington, NZ)
    Very useful, thanks. Those posted times are annoying when posting games on this site.
    “The history of the 20th century is full of examples of countries that set out to redistribute wealth and ended up redistributing poverty.”
    “There’s no point blaming the tragedies of socialism on the flaws or corruption of particular leaders. Any system which allows some people to exercise unbridled power over others is an open invitation to abuse, whether that system is called slavery or socialism or something else.”—Thomas Sowell

  5. #5
    CC Grandmaster
    Join Date
    Apr 2008
    Quote Originally Posted by Capablanca-Fan View Post
    Very useful, thanks. Those posted times are annoying when posting games on this site.
    They certainly are. Also annoying when trying to use games for coaching.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Good advice on removing spyware
    By Bereaved in forum The 1337 Lounge
    Replies: 19
    Last Post: 30-12-2007, 05:35 PM
  2. need help with fritz 8 media files
    By qpawn in forum Computer Chess
    Replies: 1
    Last Post: 02-08-2006, 08:13 AM
  3. SP Master Files
    By kveldulv in forum Ratings Arena
    Replies: 3
    Last Post: 13-03-2006, 08:28 PM
  4. Uploading pgn files
    By Carl Gorka in forum Help and Feedback
    Replies: 5
    Last Post: 23-10-2005, 10:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts