How to create a GREP query with find a replace


can please assist following grep example, appreciate it.

 

find: line beginning number (could single or double digits) number or include 2 numbers dashes in between (i.e. "2-3")

 

replace: tab @ beginning of line , place after number (or numbers, mentioned earlier) tab + "indent here"

 

here example:

original:

1 cup nuts

10 oz. sugar

2-3 cups cereal

 

result:

[tab] 1 [tab] [indent here] cup nuts

[tab] 10 [tab] [indent here] oz. sugar

[tab] 2-3 [tab] [indent here] cups cereal

 

thanks in advance.

find:

^(\d+-\d+)|(\d+)\s

replace:

\t$0\t~i

 

i tested list, , additional line numbers 10-12



More discussions in InDesign


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop