Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Analyze part of ChessBase games

Author: pete stein

Date: 14:04:15 05/10/01

Go up one level in this thread


Copy your database to database.pgn and edit .pgn with Boxer 99 :
http://www.boxersoftware.com/
Search/replace with nothing the moves you want to analyze.
Create an opening book containing the truncated .pgn. and analyze the database
with this book loaded. DJ will normally not analyze bookmoves.

To search/replace here's a tutorial:

>>>>>>>>>>>>>>>>>>>>>>>>>>>
WILDCARDS / REGULAR EXPRESSIONS

The question mark will match any single character.
Example: p?t will match pat, pet, pit, pot, put and any 3-character
sequence with p and t and a single character in the middle.

The asterisk will match zero or more occurrences of any character.
Example: B*r will match Boxer, Butcher, Baker, Br

The caret (^) matches the start of a line.
Example: ^The will match any line beginning with The

The dollar sign ($) matches the end of a line.
Example: result$ will match any line ending with result

One or more characters can be within square brackets.
Example: p[aeiou]t will match pat, pet, pit, pot and put.
An expression such as 199[6789] will match 1996, 1997, 1998 or 1999

Characters in square brackets with a dash designate a range of characters.
Example: [b-d]ent will match bent, cent and dent

Characters within square brackets can be negated by the caret.
Example: [^cb]ent will match tent, rent, dent, but not cent or bent.
The caret also negates a range : [^a-e] will match all except a, b, c, d and e

The vertical rule separates two or more regular expressions.
Example: Bob|Rob|Bobby|Robby will match any of the names.
This regular expression could also be: [BR]ob|obby

Left and right parentheses start and end a sub-expression.
Example: c(ar|en|oun)t will match cart, cent and count

Whole words can be in angle brackets and backslashes.
Example: to find the word under but not blunder or understand, use \<under\>

Special characters can be matched with an escape sequence.
The sequences \b, \f, and \t represent backspace, formfeed and tab characters
A decimal escape sequence can also be used.
Example: \210 matches the character whose decimal value is 210

The backslash removes significance of a pattern character.
Example: to search asterisk, use \* , to search backslash, use \\

All expressions can be in the same regular expression.
^The?q[^a]ick*f[aeiou]x*ov[a-e]r*dog$ matches The quick brown fox jumped over
the lazy dog

>End tutorial>>>>>>>>>>>>>>>>>>>>>>

I had a comparable problem a couple of days ago.
Pete




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.