GREP - search for anything except a single character

Trying to figure out whether or not I can tell GREP...

I want to search for any character who is a character Exhibitor style except for the symbols of the registration mark.  Is it possible to exclude a character of a search?

Thank you, Phyllis

Altogether. Don't forget the ' ^' character that indicates "start of the paragraph? Well well... whoever designed the GREP apparently ran out of useful characters, because it is reused in the group 'exclude '. It works like this:

[0-9fuzzy]

looking for a unique character in the series of '0' to '9' (inclusive), 'f', 'u', 'z' or 'y '. Throw in the hat cancels the query:

[^ 0-9fuzzy]

looking for any old character unique except those in the game.

The registered mark has a shortcut of its own to the regular find-^ r - so it's probably "~ r" GREP mode. Otherwise, copy and paste your text. Your GREP search must therefore (with setting shaped exposing)

[^~r]

It is only the following character unregistered; to search for longer strings, you can safely use

[^~r]+

-which translates by "any string superscript, a character or more and containing not the mark registered. Yes, the short version is a little easier to type.

Tags: InDesign

Similar Questions

  • GREP search for all characters

    (Indesign CS6, Windows 7)

    For a book that I'm layout, the author marked text that should be indented like this:

    [indent]

    < paragraph >

    < paragraph >

    ...

    [indent]

    (Of course, in an ideal world, the Publisher would have charged the author simply use a word for this function.)

    I made a for the text indented paragraph style. I wanted to replace it in one shot, GREP search:

    (\[indent\]) ([.| \s|\r]+) (\[/indent\]) the middle part meaning one or more (+) of any character (.) or space or paragraph return. Replace it with:

    $2 and the paragraph style (getting rid of the markers at the same time).

    Nothing has been found. I changed it to (\[indent\])([\w|\s|\r]+) (without the end marker [indent], to see what would happen) and now he found something - but stop at the first mark of punctuation (only reaching no not the end marker). So I tried to fill in punctuation: (\[indent\)] ([\w|\.|-, |: | \s|\r]+]) and each time more was found (by the way,------. here means a complete stop). If it works more or less.

    The problem is, is a technical manual and most equations etc are in the text that should be indented, so there are a lot of characters who are neither letter or number. And of course you can not call it a clean solution.

    It's the kind of string search and replace I would also use on many other projects. Does anyone know a better solution? Now, 'any character' doesn't seem to work, there at - it a code for "any character being not not a letter or number? Thanks in advance.

    Try (? s)(\[indent\]\r?) (.+?) (\[/indent\]\r?)

    The (? s) runs on single line mode so it can be found through several paragraphs and the (. +?) is the shortes match between the tags. I've included returns after the tags, if there has, based on your example that the tags are separate paragraphs. If they are at the end of the paragraph that you want to keep, remove the \r? to avoid losing the paragraph breaks.

  • search for file names with tilde character

    trying to locate all the file name containing the tilde (~) character. It is obviously special for the search as a search looking for files with this character corresponds to each file. I can't find the mechanism to quote the tilde so that Windows will search for files containing the tildes in name literally.

    You expect to be easy to find the answer, but then I found others asking the question. I can't find the answer.

    See the following article on research in Vista: http://www.vistax64.com/tutorials/75447-search-options.html.  I ' ts faily basic and probably does not cover what you need to know to make the research you are tyring to do.

    Here is an article on research options in Vista: http://www.vistax64.com/tutorials/75451-advanced-search.html.

    Here is an article on the use of advanced query options to improve searches in Vista (I think yuu might find your answer in this one): http://www.vistax64.com/tutorials/158288-advanced-searches.html.

    Here is an article with a number of advanced search options and how format the queries that may be helpful: http://windowsteamblog.com/windows/archive/b/windowsvista/archive/2007/05/09/advanced-search-techniques.aspx.

    I hope this helps.  If not go back and I'll try to find more resources or attempting to do myself to see if I can understand how do.  It seems that Mr. Wizard answered the question before I coulld end my post. The anwer to the 'why' is probably contained in the above items.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Grep search for Roman numerals

    Hi, Indesigners...

    Can someone help me with a grep search to get all the numerals in a text?

    Thank you

    Maria

    You can search for \b[ivxclm]+\b, which translates as "any whole word which consists of one or one of the ivxclm of letters", which corresponds to i, vi, xli, but he also mic and vix. So make only the interactive search and replacements.

    Peter

  • In Lr 3.6 How can I search for filenames ending with a character #?

    Text search seems to treat the character # somehow mysterious way not to select files that have it in their name. I can't find any explanation for this in the documentation. Is there some other characters that I have to put next to the # do register as a normal character?

    My problem is that I need to find a bunch of files in my catalog whose names ending with a character #. I want to rename these files in a way that removes the end #, but no other characters # separating the key elements of the file names. If I can't do it then I want to select this group of files and to produce for them .xmp files (I don't use normally .xmp files) so that I can rename files outside of the Lr and import them to new complete with all settings and metadata.

    I dare say that I wouldn't choose to name the files in this way if I started again but I have too much change now.

    There is also too much for me to want to rename them, individually, in the metadata Panel, if I can avoid it.

    I use Lr 3.6 Mac OS x 10.6.8

    see you soon,

    -Alan

    Your files names really end by ' # ' (e.g. img123.jpg #) or is it the part without the extension that ends by "#" (e.g. img123 # .jpg).  If the latter, then that this Smart Collection criteria will identify the:

    File name contains #.

    If the first, then as you have noticed, smart Collections will not work.  But you can use the plugin to any filter, this criterion:

    Name of the file ends by #.

  • grep search for any number of words in quotes

    I understand (from what I've read) that what follows will be a single word between quotation marks:

    (?<=")\w+(?=")

    Can someone explain please how to modify this search grep in a way that allows me to find any number of words in a pair of double quotes (whether straight or "curly")?

    (Yes, I'm very new to this, but I searched a dozen sites and can't seem to find the answer.)

    Many thanks in advance,

    Ron Herrmann

    (?<>

  • Grep search for ordinal numbers

    ID CS4

    OS 10.6.8

    (? < = \d) [\l\u]+\ >]

    That's my word. It works fine except that it will only find one ordinal number. I tried different options with a + in and around the positive look behind, but nothing seems to work.

    I'm working in a bilingual environment, and I would have preferred an expression that does not include all possible letter combination.

    Any thoughts?

    OK, the last answer was the expression of Eugene with {0}.

    You cannot use an expression of variable length in a postanalyse, but I think that------<> <=\d)[\l\u]+\>will do what you want.

  • model search for not equal to.

    Hi all
    I want to replace the string except beginning with SK and following numbers, but I don't have the idea about how to shape the model of research for not equal to.
    with t as 
     ( select 'Hi i am SK123
    OK, I am SK456
    Where is your friend SK678
    And SK777 is not valid' str from dual)
    select TRIM(',' FROM REPLACE_REGEXP(REGEXP_replace(str,'SK[[:digit:]]*',','),',+')) from t ;
     required output:
     SK123,SK456,SK678,SK777
    can someone let me know model research for it.

    Thank you
    RAM

    Published by: rama ch on October 23, 2012 17:41

    ch Rama wrote:
    Amadou,
    I can't understand the meaning of "." * ? "model. Could you please explain to me.

    Which can be explained by a simple example

    SQL> with t as
      2  (
      3  select 'Test SK123 test SK456' str from dual)
      4  select str,regexp_replace (str,'.*?((SK[^ ]+)|$)','\1,') str1
      5  from t;
    
    STR                                                STR1
    -------------------------------------------------- --------------------------------------
    Test SK123 test SK456                              SK123,SK456,,
    
    .* means anything as you know.
    "?" is used for making the previous pattern(.*) non greedy.
    That means when you search for anything, dont consider the patterns which will follow "?".
    Here the following pattern is "((SK[^ ]+)|$)" - which means anything starting with SK,
    followed by non-space character or end of line
    
    So it will replace anything, which will not match to "((SK[^ ]+)|$)" .
    
  • 'Search' homepage won't work, searching for words, should go to the address bar to get one will search for.

    When I go to the start page, after clicking on the icon for Mozilla Firefox, if I type in the box and press 'Search', it does nothing. I have to go to the top of the address bar to search for anything. This isn't like Google, where I can type a few words, for example, CBS (the station news and hit search and get results). Any ideas?

    Hello mdchlanda, first of all, please see install research reset addon can solve the problem: https://addons.mozilla.org/firefox/addon/searchreset/ (a restart of the browser is needed later).

    If not, try the following steps to manually restore the search function on the default home page:

    1. Go to firefox > help > troubleshooting information and click file/show profile folder. a windows Explorer window should open - to delete the file named chromeappsstore.sqlite.
    2. then enter Subject: config in the bar firefox address (confirm the message information where it appears) & get preference named browser.startup.homepage_override.mstone - right click and restore the default value for that entry.
    3. Restart firefox
  • Exceptions in GREP search

    Is it possible to formulate a GREP search to search for all occurrences of a word except where it appears in a web address or e-mail address?

    For example, to find all the examples from Adobe , but not those in http://www. Adobesystems.com or Sales @adobe. co.uk

    Thank you very much

    Keith

    OK, it seems to me that you want to search for whole words, or the beginnings of words that end in s tiny or higher, or an apostrophe. You can use the anticipation (? = [.,'\ssS]) to stop the match a white space, period, comma, apostrophe or any type of s, but it will fail on adobe.com, if you want to find Adobe. at the end of a sentence. Seems to me, however, that you can remove the class period and use it in an expression as part of a second 'or' like this ()<><(?i)adobe(?=[,'\ssS])) so="" that="" it="" will="" match="" adobe="" before="" a="" period-whitespace="" (end="" of="" sentence),="" but="" not="" period-any="" other="" character="">

  • How to use the find method to search for multiple items in a single paragraph?

    I'm desigining a script to find all instances where ctrl + b and ctrl + i are applied to body text and then replace the format of these characters replaced with chartag italic or bold.  Here's what the script is supposed to do:

    1. put the find method in a while loop that overrides seeks format character.
    2. If a substitution of format character is found, pass the text range returned by the find method and the CharPropsChange flag in the GetTextForRange method.
    3. Use a Boolean comparison between the idata of the text element to the angle of character and character constant weight.
    4. What that is the boolean is set to true, and then use the SetTextProp method to set the properties of the text range for the italic or bold character tag properties.

    This script works on the substitution of format first character found however it ignores other substitutions in the same paragraph. The cause of this is that the while loop updated the line of text control used by the find method for the following paragraph in the stream. I think I need to add an inner loop that runs through all the text in a single paragraph, where teaching iteration the loc text used by the find method is based on the same paragraph, but the offset is changed. I don't know how to do this.

    function removeOverrides (RPSC)

    {

    var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;

    var vBoldFmt = getCharFmt (RPSC, "Bold")

    var vItalicFmt = getCharFmt (RPSC, 'Italic')

    initFA_errno ();

    While (FA_errno is constant .FE_Success)

    {

    var vTextLoc = new TextLoc(vDocStart,0);

    var vFindParams = findOverrideParams (CDRP);

    var vTextRange = pDoc.Find (vTextLoc, vFindParams);

    If (vTextRange.beg.obj.ObjectValid ())

    {

    var vTextItems = pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)

    If (vTextItems.length ==! 0)

    {

    If (vTextItems [0] .idata == constant .FTF_WEIGHT)

    {

    pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps ())

    }

    If (vTextItems [0] .idata == constant .FTF_ANGLE)

    {

    pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps ())

    }

    } else (Log (vLogFileName, ' \nERROR: none of the items were found in the table in text format but alternative size were found: ' + pDoc.Name))

    }

    vDocStart = vDocStart.NextPgfInFlow;

    }

    }

    function findOverrideParams (RPSC)

    {

    var vFindParams = AllocatePropVals (1);

    vFindParams [0].propIdent.num = Constants.FS_FindObject;

    vFindParams [0].propVal.valType = Constants.FT_Integer;

    vFindParams [0].propVal.ival = Constants.FV_FindCharacterFormatOverride;

    Return vFindParams;

    }

    Another approach (which is what I usually did) is after the first search to set vTextLoc = vTextRange.end

    Whatever it is, you might consider moving your initialization of vTextLoc and vFindParams outside the while loop. The settings do not change, why redefine them for each search?

  • When I type in a search on the web for anything whether it's IE, eBay or Facebook my PC just redirects research and opens another page, how can I rectify this

    Original title: redirection

    When I type in a search on the web for anything whether it's IE, eBay or Facebook my PC just redirects research and opens another page, how can I rectify this

    Hi Mark,
    Your computer is probably infected by a virus. Try following the steps in this virus/malware removal guide: http://www.selectrealsecurity.com/malware-removal-guide
    It contains instructions which will remove most malware infections. If you have any questions, just ask me. I hope this helps you.
    Brian
  • My laptop can open internet explore properly, the cursor may work when you tap the address space to type a Web site, but the site it does not point to the search space to find anything except the right button

    My laptop can open internet explore properly, the cursor may work when you tap the address space to type a Web site, but the site it does not point to the search space to find anything except the right button. What is the problem? Harry

    When you try to search it's inside Windows or Internet explore?
    When is this last work fine?
    You did changes to the computer?
    Has it worked before, then you can try to run the system restore and check if that helps

    ;)

  • How can I search for all files not containing a speific (_) character in a folder in Windows 7?

    How can I search in Windows 7 for all files not containing a speific (_) character in the file?

    I have two files with about 50 000 files in each folder.  There are many copies of the same file (only one folder contains photos, the other file has data files.  In the two files copies have the same name as the original file, for example IMG01, but identified for example IMG01_1, IMG01_2, etc..)

    I would like to find all files that DO NOT have a _ in them.  Can I do this?  How?

    Or I have to search for all files that have a _ by searching for * _ *?  Delete these files?

    I tried, but program trotted for 2 hours.  Just take a while?

    I thought that if I could search only files without the _ it would be more effective.

    Less than 20% of the files in each folder have not a _ in them.

    You should be able to use a? or * to replace a number of characters that are either unique or variable.  * book would find both book and facebook, or? ook would only book.

    Anyway, there's probably not a way to identify the files corrupted by a search.

  • search engine for a single click is blocked on "search for firefox search engine ' all the time, whenever I changed it and it will not remain as google, it will return

    search engine for a single click is blocked on "search for firefox search engine ' all the time, whenever I changed it and it will not remain as google, it will return

    I want it to be as if it were before, google as my main search engine

    now its still stuck on "search for firefox search engine" which is the yahoo search engine that is really garbage

    In addition, your Firefox is identified at the forum as version 38. An update is available: this article describes how to get 49 Firefox using the "About Firefox" dialog in the menu help: Firefox update to the latest version.

    If something is holding you upgrade to Firefox 49 (or if you use the ESR, Firefox 45esr series), please let us know if we can offer you solutions or workarounds. Version 38 is not safe; Mozilla reveals security flaws after each new version.

    Sometimes Firefox reports the wrong version, because this information was frozen in a preferences file. If the troubleshooting information page shows Firefox 49.0.2, you may need to clear this incorrect information. See:

Maybe you are looking for