<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: what are the illegal character for CMS name ?</title><link>https://answers.axonivy.com/questions/1172/what-are-the-illegal-character-for-cms-name</link><description>&lt;p&gt;when i try to store things in the cms, i sometimes have&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Caused by: java.lang.IllegalArgumentException: Illegal content object name &amp;lt;té.txt&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is there a list of illegal character for the name of the node in the cms ?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1172/what-are-the-illegal-character-for-cms-name" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 19 Feb 2015 17:22:58 -0500</lastBuildDate><item><title>Answer by Flavio Sadeghi</title><link>https://answers.axonivy.com/questions/1172/what-are-the-illegal-character-for-cms-name/1173</link><description>&lt;p&gt;The name of a Content Object is checked by a &lt;a href="http://en.wikipedia.org/wiki/Regular_expression"&gt;Regular Expression&lt;/a&gt;: &lt;strong&gt;&lt;code&gt;[\\p{Alnum}_-]+[\\p{Alnum}_.+\\-]*&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Here an example of an utility class&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;package cms.utils;

import java.util.regex.Pattern;

public class CmsUtils {

    private CmsUtils(){}

    private static final Pattern CMS_NAME_FORMAT = Pattern.compile("[\\p{Alnum}_-]+[\\p{Alnum}_.+\\-]*");

    public static boolean isContentObjectNameValid(String name) {
        return CMS_NAME_FORMAT.matcher(name).matches();
    }
}
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Thu, 19 Feb 2015 17:22:58 -0500</pubDate><guid>https://answers.axonivy.com/questions/1172/what-are-the-illegal-character-for-cms-name/1173</guid></item></channel></rss>