Subscribe: Comments on: An Undocumented Bit of GREP Gold
http://www.theindesigner.com/blog/an-undocument-bit-of-grep-gold/feed
Added By: Feedage Forager Feedage Grade B rated
Language:
Tags:
address city  address  city state  city  company street  company  find  state zip  state  street address  street  zip company  zip 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments on: An Undocumented Bit of GREP Gold

Comments on: An Undocumented Bit of GREP Gold



information. instruction. insight.



Last Build Date: Mon, 21 Sep 2015 19:35:44 +0000

 



By: alhdesign

Tue, 08 May 2012 12:21:01 +0000

Thanks, this would be a big help since I believe you can do anything with the right grep that you can do with a similar plug in like IN-DATA. IN-DATA seems to be an overkill for a lot of simple things GREP can do and with the FINDBYLIST script, you can generate everything in one shot. GREP and Find and Change has come a long way.



By: Michael Murphy

Mon, 07 May 2012 18:32:42 +0000

I believe this is do-able. I'm working out the kinks of an expression that gets me partly there, but is omitting the entries between the first and last instances of the category. I think I can work that out. Will post here as soon as I figure out how.



By: alhdesign

Mon, 07 May 2012 18:05:21 +0000

I am looking for something a little different. I have a list that looks like this. Here’s an example of a correct listing: CATEGORY NAME 1 Company Name 1 Street Address 1 City, State, Zip 1 Company Name 2 Street Address 2 City, State, Zip 2 Company Name 3 Street Address 3 City, State, Zip 3 CATEGORY NAME 2 Company Name 1 Street Address 1 City, State, Zip 1 Company Name 2 Street Address 2 City, State, Zip 2 Company Name 3 Street Address 3 City, State, Zip 3 and this is how the problem listings showed up: CATEGORY NAME 1 Company Name 1 Street Address 1 City, State, Zip 1 CATEGORY NAME 1 Company Name 2 Street Address 2 City, State, Zip 2 CATEGORY NAME 1 Company Name 3 Street Address 3 City, State, Zip 3 CATEGORY NAME 2 Company Name 1 Street Address 1 City, State, Zip 1 CATEGORY NAME 2 Company Name 2 Street Address 2 City, State, Zip 2 CATEGORY NAME 2 Company Name 3 Street Address 3 City, State, Zip 3 How do I remove the repeated CATEGORY NAMES after the first initial one?



By: Guido

Tue, 13 Jul 2010 01:35:30 +0000

I LOVE GREP… Now, I'm working on a volleyball yearbook and I am facing a very challenging formatting problem. I have this: player 1a-player 1b [xx] vs player 2a-player 2b [xx] 2-0 player 1a-player 1b [xx] vs player 2a-player 2b [xx] 1-2 and so on. The xx in square brackets is the ranking, from 1 to 32. What I need is to apply a bold character style to the WINNING team; so, it's some sort of conditional GREP, but I'm not sure at all if this could be accomplished. Any idea? It's worth hours of my life…



By: Neets_Norway

Tue, 20 Oct 2009 06:25:52 +0000

Sorry Martin. It still cannot find match... On the other hand, THIS code seems to find the symbols; (?<=").*?(?=") BUT it cant change it to the ones I want. Help me please! Anita



By: Martin

Sat, 26 Sep 2009 12:24:18 +0000

Anita - in case your problem w/ the replacement of quotation marks into norwegian quotation marks has not already been solved, here is my idea: Michael used the Unicode '201C' and '201D' in his find eypression. What if you replace both expressions into '0022'? It worked fine for me... Martin



By: Anita

Fri, 04 Sep 2009 12:36:53 +0000

Sorry Michael! "Cannot find match." it says! Per ”Elvis” Granberg (1941-1980) startet sin artistkarriere i musikalen ”South Pacific” i 1954. Hans rockekarriere skjøt for alvor fart i 1958 og han var aktiv fram til 60-tallet. This is a typical text that we have to change all the quotation marks on... And it can't seem to find it... The text is copied from Word. And I would like it to look like this; Per «Elvis» Granberg (1941-1980) startet sin artistkarriere i musikalen «South Pacific» i 1954. Hans rockekarriere skjøt for alvor fart i 1958 og han var aktiv fram til 60-tallet. As you can see, its a s***te job when the customers hit a quotation mark high! I have to change the dictionary to Norwegian: Bokmål, then the double quotes into «»...Then start the prosess using Find/Grep to change them all in to the left side «, and once more to change every other (right side ») using Find next -> Change -> Find next... Not funny at all...! Thank you SO much for helping me out! As you can see, it's bloody frustrating to work like this... :o) Anita



By: Michael Murphy

Tue, 01 Sep 2009 13:26:56 +0000

Hello again, Anita -- If you want to find any text within US quotation marks and change it to your Norwegian marks, you need to specify the quotation mark characters without using the options available under the Quotation marks sub-menu of the special characters flyout menu. The options there don't distinguish between the two. The most bullet-proof way of doing this is to refer to each specific quote type by its unicode value. In the Find What field, you would enter the following: \x{201C}(.+?)\x{201D} That translates as "an opening left double quotation mark, followed by any character, one or more times (shortest match), followed by a closing right double quotation mark. The part of the expression that describes the text within those quotes is enclosed in a marking subexpression (within parentheses), so it can be put back later. In the Change To field, you would enter the following: \x{00AB}$1\x{00BB} That puts back the text that was within the quotation marks, but surrounds them instead with the proper double-angle quotation marks, left and right. I tested this on my end and it works fine. Let me know if it solves your specific challenge. Michael



By: Anita

Tue, 01 Sep 2009 10:56:44 +0000

Another question... Norway does not have the same quotationmarks as US. I'm struggling to find out how to do this... I need to find: " Any text with in quatationmark" and turn it into «found text but with norwegian marks» This is probably dead easy... But I cant seem to figure it out. Please help me once again! Neets



By: Anita

Tue, 30 Jun 2009 06:14:11 +0000

Heeey! Thanks and thanks again!!!! You just saved my customer an hour of spacing!!!