title: WSO2IS - deployment.toml - Invalid escape sequence
body: <p>I'm facing some problems converting user-mgt.xml file from wso2is:5.8.0 to wso2is:5.10.0 version. I have some configurations in user-mgt.xml to primary user store using ldap and now when I use deployment.toml I can't start the server.</p>
  <p>docker container log:</p>
  <pre><code>[2021-03-01 21:42:19,627] ERROR {org.wso2.config.mapper.TomlParser} - Invalid escape sequence '\.' (line 44, column 53)
  [2021-03-01 21:42:19,627] ERROR {org.wso2.config.mapper.TomlParser} - Invalid escape sequence '\.' (line 45, column 59)
  [2021-03-01 21:42:19,627] ERROR {org.wso2.config.mapper.TomlParser} - Invalid escape sequence '\S' (line 47, column 24)
  [2021-03-01 21:42:19,628] ERROR {org.wso2.config.mapper.TomlParser} - Invalid escape sequence '\S' (line 48, column 30)
  [2021-03-01 21:42:19,628] ERROR {org.wso2.config.mapper.TomlParser} - Invalid escape sequence '\-' (line 50, column 34)
  [2021-03-01 21:42:19,628] ERROR {org.wso2.config.mapper.TomlParser} - Invalid escape sequence '\S' (line 51, column 30)
  </code></pre>
  <p>user-mgt.xml from old version 5.8.0</p>
  <pre><code>&lt;UserStoreManager class=&quot;org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager&quot;&gt;         
   &lt;Property name=&quot;UsernameJavaRegEx&quot;&gt;^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$&lt;/Property&gt;
   &lt;Property name=&quot;UsernameJavaScriptRegEx&quot;&gt;^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$&lt;/Property&gt;
    &lt;Property name=&quot;UsernameJavaRegExViolationErrorMsg&quot;&gt;Username pattern policy violated&lt;/Property&gt;
    &lt;Property name=&quot;PasswordJavaRegEx&quot;&gt;^[\S]{5,30}$&lt;/Property&gt;
    &lt;Property name=&quot;PasswordJavaScriptRegEx&quot;&gt;^[\S]{5,30}$&lt;/Property&gt;
    &lt;Property name=&quot;PasswordJavaRegExViolationErrorMsg&quot;&gt;Password length should be within 5 to 30 characters&lt;/Property&gt;
    &lt;Property name=&quot;RolenameJavaRegEx&quot;&gt;[a-zA-Z0-9._\-|//]{3,30}$&lt;/Property&gt;
    &lt;Property name=&quot;RolenameJavaScriptRegEx&quot;&gt;^[\S]{3,30}$&lt;/Property&gt;
  &lt;/UserStoreManager&gt;
  </code></pre>
  <p>deployment.toml from newer version 5.10.0:</p>
  <pre><code>[user_store.properties]
  ...
  UsernameJavaRegEx = &quot;^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$&quot;
  UsernameJavaScriptRegEx = &quot;^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$&quot;
  UsernameJavaRegExViolationErrorMsg = &quot;Username pattern policy violated&quot;
  PasswordJavaRegEx = &quot;^[\S]{5,30}$&quot;
  PasswordJavaScriptRegEx = &quot;^[\S]{5,30}$&quot;
  PasswordJavaRegExViolationErrorMsg = &quot;Password length should be within 5 to 30 characters&quot;
  RolenameJavaRegEx = &quot;[a-zA-Z0-9._\-|//]{3,30}$&quot;
  RolenameJavaScriptRegEx = &quot;^[\S]{3,30}$&quot;
  ....
  </code></pre>
  <p>How can I fix this problem?</p>