[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
RE: Fine-tuning CIF dictionary regexes
- Subject: RE: Fine-tuning CIF dictionary regexes
- From: James Hester <jrh@xxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 15:59:20 +0900
- In-Reply-To: <E88024C0BA8052478C717D472F978C1803164B5F@iu-mssg-mbx05.exchange.iu.edu>
- References: <E88024C0BA8052478C717D472F978C1803164B5F@iu-mssg-mbx05.exchange.iu.edu>
John Bollinger wrote: > For your particular case, it seems that you ought to be able to read a > regex from the dictionary, prepend a '^', append a '$', and go. > Alternatively, some regex engines (e.g. Java's) allow you to exert > control at the API level over whether or not the whole string, the > beginning of the string, or just any old part of the string needs to > match. A single appended $ did the trick, of course, why didn't I think of that? So if the non-universal regular expressions in the dictionary (those that contain alternations) finished with a $ sign, that would guarantee (almost?) all regexp engines could match using the expressions in the dictionary, with no program intervention - worth thinking about. _______________________________________________ cif-developers mailing list cif-developers@iucr.org http://scripts.iucr.org/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- References:
- RE: Fine-tuning CIF dictionary regexes (Bollinger, John Clayton)
- Prev by Date: RE: Fine-tuning CIF dictionary regexes
- Next by Date: _atom_site_aniso_label is broken
- Prev by thread: RE: Fine-tuning CIF dictionary regexes
- Next by thread: bug reports requested
- Index(es):