Reply To: GREP help! Long string of numbers, need to add a space every 7th number

Home Page / Forums / General InDesign Topics (CLOSED) / GREP help! Long string of numbers, need to add a space every 7th number / Reply To: GREP help! Long string of numbers, need to add a space every 7th number

#103499

Hi Jennifer,
try to search:
(\d\.\d{7})(\d{7})(\d{7})(\d{7})(\d{7})(\d{7})(\d{7})(\d{7})(\d{7,})
replace with:
$1 $2 $3 $4 $5 $6 $7 $8 $9

Unfortunately you cannot add the space into more than 9 groups of numbers, so you need to perform a second search and replace for the last group
search:
(\d{7})(\d{7})
replace:
$1 $2

This article was last modified on May 2, 2018

Comments (0)

Loading comments...