Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Need help with GREP expression

Return to Member Forum

  • 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.
Forum Ads