This is an archive copy of the IUCr web site dating from 2008. For current content please visit https://www.iucr.org.
[IUCr Home Page] [CIF Home Page] [mmCIF Home Page]

regular expressions

Peter Keller (bsspak@bath.ac.uk)
Wed, 11 Oct 1995 15:02:21 +0100 (BST)


Hi - First, a big hand to John and Paula, who have done stirling work 
with the dictionary and DDL. 

The new regular expressions in ITEM_TYPE_LIST are a big improvement on the
old ones, but one thing which still hasn't been corrected is the
inconsistent escaping of various special characters.

'code', 'ucode', 'char', 'uchar' and 'text' contain literal '.', '*' and
'\' characters, which need to be escaped as '\.', '\*' and '\\'. In
'float' we have '[.]', which is not strictly correct, since that would
mean 'one of any character'. In 'char', 'uchar' and 'text', the literal
'?' character should be escaped as well. 

(The literal single and double quote characters can stay as they are - if
anyone is confused about that, take a close look at the STAR syntax. Brian
and myself hope to post something on STAR 'real soon now'.)

Also, the 'float' expression doesn't allow for an appended esd for those
data names which have _item_type_conditions.code esd. Does anyone know if
this is an omission, or does it imply that _item_type_conditions.code
should always be checked and interpreted before _item_type.code ? 

Regards,
Peter.

========================================================================
Peter Keller.            \ 
Dept. of Biology and      \ "Not even the greatest nonsense is beyond
    Biochemistry,          \  the reach of human invention."
University of Bath,         \ 
Bath, BA2 7AY, UK.           \          --- Ryszard Kapuscinski
------------------------------\-----------------------------------------
Tel. (+44/0)1225 826826 x 4302 | Email: P.A.Keller@bath.ac.uk (Internet)
Fax. (+44/0)1225 826449        |   P.A.Keller%bath.ac.uk@UKACRL (BITNET)
========================================================================