Valid syntax of "name" entity

Document created by cdnadmin on Jan 24, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Christopher Verges on 19-08-2010 03:33:18 PM
What is the valid syntax of an EnergyWise agent's "name" field?  For example, any alphanumeric combination?  Are special characters allowed?  What about whitespace inside the name field?  If you have a regular expression that can be used for validation, it would be extremely helpful.
 
Thanks,
Chris

Subject: RE: Valid syntax of "name" entity
Replied by: Brad Schoening on 20-08-2010 02:00:40 PM
 
Name should consist of printable characters with no white space.  Maximum length is 127 characters.  
 
Currently, we define a fixed list of allowed characters (below).  This will probably be localized to use isprint() and isspace() in the near future.
 

"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"\
                            "0123456789~!@#$%^&()_-+={}[]\\:.,></";

Attachments

    Outcomes