Quick GREP question

Hi guys,.

I'm working on a catalogue that has a lot of imported price of a spreadsheet who kept decimal les.00. I need to do a find and remove them so that £75.00* becomes £75 *.

Note the asterisk which will need to be maintained. All prizes are awarded styles so I can isolate changes to this style. Any help would be greatly appreciated!

See you soon,.

Lewis

Search: (£\d+\.) 00 *.

Change of: $1 *.

And set the style in the Format pane to find.

Peter

Tags: InDesign

Similar Questions

  • Style InDesign Grep question

    Hello

    I have a question about Indesign. I want to make the text a certain character as a space of hair for example "BOLD". This must be addressed in a paragraph style. I think that this can be done with GREP styles. I've tried several things, but it is not supposed me... Anyone know if this is possible or is there a better way to do?

    Thank you!

    Apply style to "bold" to the text:

    (?<>

  • Quick SEO question - new domain

    Just a quick and I'm sure that the answer is a resounding no, but wanted to check I'm someone give the right info.

    Basically, someone I know has a site for a company and had a falling out with his partner, who threatens to take down the site.

    Then the other guy wants to make a copy of the site to a new domain that he has a master's degree.

    So the question is will be the new site / domain keep / inherit all rankings SEO of the site existing under it is the same exact content?

    As I said, I would be sure that the answer is no.

    It would be only if the domain name is the same. Who has control of the domain name? That's who is listed as the owner of the domain for the domain name?

  • Simple GREP question

    the following case modifier applies to all the text in brackets?

    (\((?i) (all this text is modified\ is?)------)

    I was wondering how editors work with sub-expressions.

    A very good Question!

    -Yes, it does. The modifiers are fully aware of grouping, and so you can do something like

    ( ? i) Hello ((?-i) World) out there

    to find 'Hello' and 'out there' sensitive case-sensitive and case-insensitive 'world'.

    Modifiers should not be at the beginning of your GREP:

    Hello (? i) World (?-i) etc.

    find "Hello" case sensitive (by default), 'everybody' insensitive to the case and "etc (any character)" case-sensitive. This is equal to

    Hello everyone ((?i)) etc.

    Moreover, another method is to use this notation:

    Hello (? i: world) etc.

    which is a little more readable.

  • Find and replace grep Question.

    I'll put up paragraph styles and I'm changing anything with < CR > in a ^ p.  How do I do this with a string of grep?  I am wanting to add this string grep grep style in the paragraph styles.

    With GREP Styles you can not change the text, but the formatting of the text.
    You will need an action of find/replace with the TEXT or GREP find/replace.

    Uwe

  • Grep question

    Hello

    In Grep, we'll find "one or more times", but we'll find ranges [for example (\d{3-5)}]

    Kind regards

    MuraliVetha

    You must use (\d{3,5)} instead, between the minimum and maximum number of find with a comma instead of a hyphen.

  • QUICK - GREP HELP

    Hello!

    I need a code of grep

    In a cell, I have input/output prices like this:

    7.95

    16.95

    But I need to put / after the first line like this:

    7.95.

    16.95

    Remember that it is in a table/row.

    I've been using this code:

    To find:. $

    change: $0.

    but it changes both to:

    7.95.

    16.95.

    No need for GREP; changing ^ p / ^ p

  • GREP question - space before am &amp; pm

    Hello

    I wonder if there is a GREP which will find a number with an am or pm and add a space between the number between the am or pm?

    Compose my contributors to the magazine that I keep typing time as "19:00", for example, our style says there should be "19:00". This change by hand is a pain.

    Thank you!!!

    To find

    (\d+) (am: pm)

    Implement

    $1 $2

  • [CS3] GREP question

    I use the following code to find all compound words:

    (\w\w+)-(\w\w+)

    However, if the first word has initials, such as the "U.S.-China", it does not find it.

    So I change the code to be:

    (\w(.?) \w+.?) -(\w\w+)

    This method works. GREP is now any compound word if there are initials but when there is no initials, she also selects the last letter of the word from the speaker before. For example, what is in parentheses here is selected:

    e [e mid September]

    Why is that happening and how can I solve this problem?

    Thank you

    Tom

    It seems to work because the only period is a wildcard character 'any character'. So, it is the period in your 'US', but in addition it also matches any character, including a previous space, as you saw.

    Use \. to escape from the ordinary meaning of the period and change his behavior as the code of her litera.

  • Grep Question Placement. ?

    Hi all

    I would like to make the InDesign grep search and replace method to reach below substitutes.

    The requirement is the third line of the text he had move on the first line with carriage return, is it possible instead of Grep.

    Note: I placed is the content for the sample, but live a dynamic content.

    I tried myself with the peace of code here.

    app.findGrepPreferences = app.changeGrepPreferences = null;

    app.findChangeGrepOptions.includeFootnotes = false;

    app.findChangeGrepOptions.includeHiddenLayers = false;

    app.findChangeGrepOptions.includeLockedLayersForFind = false;

    app.findChangeGrepOptions.includeLockedStoriesForFind = false;

    app.findChangeGrepOptions.includeMasterPages = false;

    app.findGrepPreferences.findWhat = "Blabla (\\d+.\\d+)\\r(*.). \\r|| blah-blah-blah. \\r";

    app.findGrep ();

    Thanks in advance.  Any suggestion to find the exact model by using Grep expression.

    Kind regards

    Imagine

    Imagine them salvation.

    Please find below snapshot is easy to understand for you.

    app.findGrepPreferences.findWhat = "^(BLABLA \d+.\d+\r)(.+\r)(\|\|bla-bla-bla\|\|\r)";
    

    THX

    csm_phil.

  • An another GREP Question

    I am trying to use GREP to search for all rows that contain the following text: ""or the words "": then change to: ""or the words ": "

    The problem does not change, it is to find.  I use this string to try to find these words or phrases in brackets with the column at the end: ("") (\w+)(") (:)

    So far, it works very well to find what I want, with one exception.  He is unable to find all the words in parentheses, with what it can't find cases many sing the words.  As far as I understand (\w) should find "any word", but in this line, there is a + which means one or several times, yet he is only not one or more.  Could someone please help me understand why this does not how it appears to work?

    It does not work because several words have spaces between them, and you're not allowing for this.

    I suspect that what you really want to find is (".") + ? (''): although I have not tested. Which should match the shorter what whether in quotation marks and followed by a colon.

  • GREP question: How do \r and \z play at the same time?

    InDesign CS5

    I have a couple of styles GREP designed to allow development of large portions of the text much easier. In order to reduce the time back on and force things back, I created an unbreakable character style to be applied to the words at the end of a paragraph and after punctuation. To get rid of the massive gaps at the end of the lines, I have limited the number of characters in words and whenenver, some still get through, I apply a character style "Delete everything" separate. This makes it easier for our web service during the file conversion, the lack of forced returns and the addition of seamless formatting instead.

    So far, I have 3 GREP queries to apply:

    -\s\ < \w{1,7}\ > < \w{1,8}\ > [.!,:;] »] \r

    -\s\ < \w{1,7}\ > < \w{1,8}\ > [.!,:;] »] \z

    (? < =[.!?;:,"]\s)\ < \w{1,7}\ > \s\ < \w{1,7}\ >)

    The reason for the 3 is the end of the paragraph (\r) query does not apply at the end of a story (\z). I tried to combine the two using ' | ' between queries but it just ends up by doesn't work do not at all. Or with the ends as follows: (\r|\z)

    Is it possible to get this consolidated to a better query, so I need to copy and paste the three whenever I want to apply it to a style? It would be easier when you give the query to people, too, if she were consolidated. All the 3 together would be ideal.

    Thanks to anyone who can lend a hand.

    Use $ instead of \r or \Z

  • Quick simple question how int draw?

    so Hello guys..,.

    I want to ask you how to make a variable of type integer equal to null..,.

    I tried to do:

    var myInt: int;

    myInt = null;

    Well, he work a little but giving a warning..,.

    hope I make my question clear and undestandable..,.

    Although the docs state that, I wonder that is taken by the Board. Otherwise try to do this at least:

    var i:int = new int();
    trace(i);
    i = undefined;
    trace(i);
    
  • Of find/change GREP question

    Salvation of the Italy,

    I need to find each "2" in the words "CO2" and apply (only on the ' 2') index style.

    I can't figure out how. If I search all the 2 at the end of a word I also find 2002 and O2, if I find (CO) (2) and replace it with $12 style index applies to the "CO2" not only "2"...

    Can anyone help?

    Luca

    It's a classic: this forum for the shows "CO2 GREP" search this particular application is a good example of Advanced GREP trickery.

    Short version: you want to search for it:

    (?<>

    Read http://forums.adobe.com/message/1285612#1285612 for the long version.

  • Research GREP question

    Hello all, I generally consider myself as quite convenient to the GREP, but this one I'm not sure. What I need is to be able to search for parts of a text and put them in a paragraph style, and then use more searches to narrow down these results.

    The text is composed of much documents and possibly in the sections an appendix and even a pregnant. each of them are separated by a point size and then a similar version of the same paragraph styles that exist in the text. in any case, what I need is to be able to clear any number of introductory research reaches the signifier of text indicating the section subordinated. Here is the idea for the annexes:

    (? < = ^ APPENDIX ~ b) (. + ~ b) +(?=^DOCUMENT)

    It works in both circumstances in the book however I think the culprit for breaking this research is the forced return and possible nonbreaking spaces. anyone knows how I can put in some type of if theres a return force ignore too type of situation.

    Thank you!

    Try changing the middle section to

    (.*~b)+

    I tried and I tried and it doesn't work... because I had a blank line in my text, which is not what your matches (one or more characters before the back...).

Maybe you are looking for