0
Using Find and Replace to add comma separator
New Here
,
/t5/indesign-discussions/using-find-and-replace-to-add-comma-separator/td-p/9920218
Jul 09, 2018
Jul 09, 2018
Copy link to clipboard
Copied
Hi Guys,
I'm working on a project and was wondering if a GREP find/replace would help me out with this change.
Currently in my layout, I have a square footage number followed by SQFT. (example: 2320 SQFT.)
Is there any way that I can get a comma to be added in to separate the thousands? I've tried endlessly but still haven't been able to figure it out.
Thanks!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/indesign-discussions/using-find-and-replace-to-add-comma-separator/m-p/9920219#M103959
Jul 09, 2018
Jul 09, 2018
Copy link to clipboard
Copied
Find
(\d)(\d\d\d)( SQFT.)
change to
$1,$2$3
This will work up to six figures
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/indesign-discussions/using-find-and-replace-to-add-comma-separator/m-p/9920220#M103960
Jul 09, 2018
Jul 09, 2018
Copy link to clipboard
Copied
Try this
my settings:
Find:
(\d{1,3})(?=(\d{3})+ SQFT\.)
or simple (\d)(?=(\d{3})+ SQFT\.)
Replace with:
$1,
change format: character style: color red
Before
After
Have fun
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/indesign-discussions/using-find-and-replace-to-add-comma-separator/m-p/9920221#M103961
Jul 15, 2018
Jul 15, 2018
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

