Title: Using the CCS format &#8220;split&#8221; attribute
Last modified: March 31, 2021

---

# Using the CCS format “split” attribute

 *  [iantresman](https://wordpress.org/support/users/iantresman/)
 * (@iantresman)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-the-ccs-format-split-attribute/)
 * CCS `[format split="-" part=1]` lets me split a string at a specified character,
   and return the nth part (eg. parts of a date as described in the thread “[Changing the date format](https://wordpress.org/support/topic/changing-the-date-format-9/)“).
    1. Can I split a string at the nth specified character, counting from the end? 
       ie. The “last” part?
    2. Can I split a string at the nth character? ie. the 2nd character, the last character?
       eg. From “abcdef”, split “bcdef”, or just “ef”
 *  -  This topic was modified 5 years, 2 months ago by [iantresman](https://wordpress.org/support/users/iantresman/).

Viewing 1 replies (of 1 total)

 *  [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/using-the-ccs-format-split-attribute/#post-14261143)
 * 1. No
    2. No
 * The only way to split a string at the nth-character is `[field my_field lenght
   =X]`
 * This does not work from the end.
    -  This reply was modified 5 years, 2 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).

Viewing 1 replies (of 1 total)

The topic ‘Using the CCS format “split” attribute’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [polarracing](https://wordpress.org/support/users/polarracing/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/using-the-ccs-format-split-attribute/#post-14261143)
 * Status: not resolved