Need help with GREP expression

Learn / Forums / InDesign User Groups / Need help with GREP expression

Viewing 2 reply threads
  • Author
    Posts
    • #69538
      Jerry Ross
      Member

      Hi all,

      I’m working on an extensive book of references that I’m having trouble styling with GREP.

      Each reference begins with the source of the reference and looks like this example: “*** it-2 págs. 353-354 Meditación ***”.

      I would seem simple enough to write an expression to find any string that begins with 3 asterisks and ends with 3 asterisks, but I can’t figure out how to do it.

      Any suggestions?

    • #69543
      David Blatner
      Keymaster

      This is because the asterisk is a “reserved” character in grep, so you have to “escape” it with a backslash. Not sure if this will come across properly, but you would search for \*\*\*.+\*\*\*

    • #69544
      Jerry Ross
      Member

      David,

      That worked perfectly! Thank you.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>
Notice: We use cookies on our websites to give you a great online experience. If you keep browsing, we'll assume you're ok with this. For more information, see our privacy policy. By closing this banner, you agree to the use of cookies.I AGREENo