Title: Adding space between numbers
Last modified: June 13, 2023

---

# Adding space between numbers

 *  Resolved [waakeup](https://wordpress.org/support/users/waakeup/)
 * (@waakeup)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/adding-space-between-numbers/)
 * Hi,
 * I’m trying to change the format of the price. I’d like to add space between every
   third number, so it would be easier to read (12345 -> 12 345).
 *     ```wp-block-code
       1
       10
       100
       1 000
       10 000
       100 000
       1 000 000
       10 000 000
       100 000 000
       1 000 000 000
       ```
   
 * I couldn’t find any option for this in the settings, so maybe it would be possible
   to do by edit some files?
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Pinpoint World Support](https://wordpress.org/support/users/pinpointworld/)
 * (@pinpointworld)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/adding-space-between-numbers/#post-16818389)
 * Hi,
 * You will have to modify the file assets/js/frontend.js and at line 48 add the
   following code:
 *     ```wp-block-code
       price = price.replace(/\B(?=(\d{3})+(?!\d))/g,
                                   ' ');
       ```
   
 * Best Regards,
 * Support Team
 *  Thread Starter [waakeup](https://wordpress.org/support/users/waakeup/)
 * (@waakeup)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/adding-space-between-numbers/#post-16818402)
 * Thank you very much! I appreciate your help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding space between numbers’ is closed to new replies.

 * ![](https://ps.w.org/booking-system/assets/icon-256x256.png?rev=2192807)
 * [Pinpoint Booking System - Version 2](https://wordpress.org/plugins/booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking-system/reviews/)

## Tags

 * [number](https://wordpress.org/support/topic-tag/number/)
 * [price](https://wordpress.org/support/topic-tag/price/)
 * [space](https://wordpress.org/support/topic-tag/space/)
 * [spacing](https://wordpress.org/support/topic-tag/spacing/)

 * 2 replies
 * 2 participants
 * Last reply from: [waakeup](https://wordpress.org/support/users/waakeup/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/adding-space-between-numbers/#post-16818402)
 * Status: resolved