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

GREP put "$" on first price in a story.

Return to Member Forum

  • Author
    Posts
    • #56760
      rydesign
      Member

      Stuggling with this one and have tried and tried ot come up with a solution using grep… I am not sure it can be done. I have a bunch of stories with prices in them. I only want the first price in the story to have a “$”. Also if the story threads to another story I would like the top price in that story to aslo have a $. Also making my life more complicated is that this first line holds and anchored object for the picture of this item.

      Have a whole catalog full of these that sometimes the “$” get missed. Sometimes They get put on another line too. I would like to just remove all the “$” and replace them using grep. Right now I am manually looking for these. There is probally a better way.

      Everything I have tried hasn't worked. Jongware..? Honestly can anyone help. Although Jongware deserves a metal or to get paid for helping everyone on just about every post.

      Example

      A~at225/55tR-t16t $84r

      t235/65tR-t16t 88r

      t245/75tR-t16t 90r

      t235/85tR-t17t 104r

    • #56761
      rydesign
      Member

      I guess technically the last one would be Z. that also creates frustration.

    • #56762
      rydesign
      Member

      Z

    • #56763
      rydesign
      Member

      and the first one would start with “A”

    • #56765

      Thanks for the honourable mention, but I do think you're out of luck here …

      Ad will find the first number in your story (i.e., one without a dollar sign before it) but GREP cannot discern frames. That is, A (and Z) will not match the first (or last) character per frame (much like GREP cannot 'see' the individual lines per paragraph).

      You are also correct in your observation that anchored objects make things even more complicated — I've seen anchors move around and disappear when I tried to manipulate the text around them with GREP.

      I think it's safest to remove all dollar signs using the regular Find-and-Change (GREP sometimes has problems with $, and you don't need a specialized GREP search to remove them either) and then just manually page through your document and insert them by hand where needed … :(

    • #56783
      rydesign
      Member

      Yeah… I was afraid you would say that. :) oh well I guess i have to just adjust my proofing eyes and stop missing these simple mistakes.

    • #56784
      rydesign
      Member

      Yeah… I was afraid you would say that. :) oh well I guess i have to just adjust my proofing eyes and stop missing these simple mistakes.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.
Forum Ads