Skip to main content
Inspiring
May 7, 2018
Answered

Indesign GREP - bold the following text AUD $4,478.00

  • May 7, 2018
  • 4 replies
  • 2125 views

Hi everyone, can you help me how to bold the following text bellow. Start with AUD and end with number

Total Cost Of Booking (Inclusive of AUD GST)             AUD $1,175.94

Less Commission (Inclusive of AUD GST)                    AUD $116.20

Total Net Cost of Booking (Inclusive of AUD GST)      AUD $1,059.74

Thanks! I appreciate!

This topic has been closed for replies.
Correct answer amaarora

Hi,

Please see if this works: AUD \$[\d.,]+(\d+)?

-Aman

4 replies

sarahkayAuthor
Inspiring
May 9, 2018

Hi All,

We edited the format of all the text and added ":" before the prices.

Can you help me how can I bold and justify align right all text after the : punctuation.

How can I make it Using GREP Code in paragraph style.

Thank you guys so much appreciate!

Ex.

Deposit Holding Date:                  Tue 01 May 2018

Invoice Total:                                                   $0.00

sarahkayAuthor
Inspiring
May 8, 2018

Hi all,

One more thing.... Is it possible that these prices AUD $1,175.94 make it on right justify?

Total Cost Of Booking (Inclusive of AUD GST)             AUD $1,175.94

Less Commission (Inclusive of AUD GST)                    AUD $116.20

Total Net Cost of Booking (Inclusive of AUD GST)      AUD $1,059.74

FRIdNGE
Inspiring
May 8, 2018

Tab setting in the para style!

sarahkayAuthor
Inspiring
May 9, 2018

Hi Michel,

Need to justify RIGHT only the prices, text label must be remain at left justify.

Total Cost Of Booking (Inclusive of AUD GST)             AUD $1,175.94

Less Commission (Inclusive of AUD GST)                    AUD $116.20

Total Net Cost of Booking (Inclusive of AUD GST)      AUD $1,059.74

amaarora
Community Manager
amaaroraCommunity ManagerCorrect answer
Community Manager
May 7, 2018

Hi,

Please see if this works: AUD \$[\d.,]+(\d+)?

-Aman

sarahkayAuthor
Inspiring
May 7, 2018

Hi Aman,

Can you explain to me how did you make this? I want to understand it, Thanks!!!!!

amaarora
Community Manager
Community Manager
May 7, 2018

Hi,

Please see the meaning of different metacharacters and wildcards used:

AUD: Because you had it in the term

\$: Escape character to indicate its the dollar sign we are searching

[    Inclusion: any character in this group

    \d    Any digit (0..9)

    .,    Any of these characters

]    End Inclusion Group

+    With any character in this group may occur once or more times; longest possible match will be taken

(    Begin Group #1

     \d+ : Any number of digits

)    End Group #1

?    The entire Group #1 may occur once, or not at all

-Aman

vladan saveljic
Inspiring
May 7, 2018

try this and let us know (maybe someone give another simplified/better version).

find

AUD \$\(?(\d+)?[,]\d{3}\.\d{2}|AUD \$\(?(\d+)?[,.]\d{2}

change

format bold

sarahkayAuthor
Inspiring
May 7, 2018

Thanks Vlanda! I appreciate! This could work in find and replace. I need a grep for styles.