Skip to main content
Inspiring
January 30, 2018
Answered

GREP string to select 0 : wildcard words : hard return

  • January 30, 2018
  • 1 reply
  • 363 views

How do you set up a find and replace GREP string to find in your document any line of copy (separated by 2 hard returns) that consist of a 'zero, space, wildcard word(s), hard return?

In the attached image it needs to find the:

0 civil

0 civil & criminal

but leave the:

4 criminal

1 cease & desist

2 pre action

Essentially, I'm trying to automate the deletion of any line of copy that has a zero value. (I have close on a hundred of these docs to edit) Any ideas?

Thanks JK

    This topic has been closed for replies.
    Correct answer JacquesCapeTown

    Answered by Vinny on another forum:

    Try this:
    Find:

    ^0.+\v 

    Replace by nothing.

    1 reply

    JacquesCapeTownAuthorCorrect answer
    Inspiring
    January 30, 2018

    Answered by Vinny on another forum:

    Try this:
    Find:

    ^0.+\v 

    Replace by nothing.

    vinny38
    Legend
    January 30, 2018

    I'm everywhere