Copy link to clipboard
Copied
Hi,
I have one more problem and i need GREP to help me.
I have document witn more that 760 pages and everywhere there is a number in brakets [1], [2], [3]
I want to select them all and remove the brakets and the space around it.
For example from _[_1_]_ i want to stay only _1_. And this to happend with single number and double number.
Can you help me
I replied on the other thread but someone has moved it here
Find
\[\s*(\d+)\s*\]
Change to
$1
Copy link to clipboard
Copied
I replied on the other thread but someone has moved it here
Find
\[\s*(\d+)\s*\]
Change to
$1
Copy link to clipboard
Copied
What does "$1" mean in GREP language?
Copy link to clipboard
Copied
It's a 'Found' reference
so in the Find part (\d+)
\d+ is any amount of digits and encased in brackets as (\d+) marks it as 'Found'
$1 is the first found instance so it inserts this
For example you could have
12.94 and for some reason want to reverse this to 94.12
You would find 2 of them encased in brackets referenced as $1 $2
(\d+)\.(\d+)
and change to
$2.$1
Now the figures reverse position because it's marked in the expression as (...)
Copy link to clipboard
Copied
Thank you
Copy link to clipboard
Copied
I have one more very complex search and change.
Can i ask you here or i have to set a new post?
Copy link to clipboard
Copied
Ask away
Find more inspiration, events, and resources on the new Adobe Community
Explore Now