grep for format of the numbers in square brackets]

Hello, I have quotes in the text that appear in the ground [1] or [1-3] or [1, 3-5, 4: 7-10]. I want to use the blue color for the numbers in the model but all (, or-) else remains black. I use this grep ((?<=[\[]))([[:digit:]]+(,\s|-)) * [[: digit:]] + qui me donne une couleur bleue pour chaque chose.) How can I just blue numbers?

Thank you.

Why?

It does not matter.

It would be easy with Grep find & replace. But it is very difficult to do with Grep styles (without seeing the entire document). In this case, I can only give you the Grep styles:

It is perhaps useful to you.

Have fun

Tags: InDesign

Similar Questions

  • Grep for websites without the www prefix

    I found a clever grep code for Web sites on this forum: ------< (https | http | ftp | www) [-~! #-; =? - Z_a - z] {4} (? <! ~ j)


    However, our style requires no prefixes on websites, so I, not knowing much about grep, rearranged the code a little to this:------< [-~! #-; =? - Z_a - z] {4} (? <! ~ j)(com|org|gov|net)

    That works great except for the occasional glitch, as I joined him. I guess that the '4' in the code has something to do with the fact that if the word has 4 characters before the 'com', it will change the grep style (note the result of words and overcome.) Any suggestions to improve this code?

    Thank you for your time.

    Screen Shot 2015-12-03 at 1.58.52 PM.png

    I use in the searchfield:

    (?! ([[: punct:] $]) [\S] {2,}\. [\S] {2} (?

    I use it in the searchfield is because she's still a few false positives and I want to see what it's finding before I have apply different character style. I look for at least two characters, not three, because there are some URLS out there with only two characters as .uk. suffix

    It is not perfect, but it's the best I could figure it out for now.

    I hope this helps, and I'm completely open to suggestions on how to improve the script.

  • GREP for format only 2 figures (not 3)

    I have a table with numbers

    example.png

    I ONLY apply a style that makes numbers with 2 red digits (98, 95), but does not affect the other.

    Have you tried several things but can't do the first two digits in all THE red numbers.

    \D\d

    What I am doing wrong?

    Thank you!

    Try

    \<\d\d\>

    Have fun

  • What is the meaning of the number in square brackets in Inbox

    Next to the 'Inbox' is a number in parentheses that changes often. That means this number indicate? Can I erase or make it not show? In any case, what does that mean?

    It indicates how many messages unread is in this folder (and subfolders)

  • Shortcuts to place the text in square brackets

    Is there a script to place the bracketed text in Indesign? I have a lot of text where some words should be placed in brackets and would like to just highlight the word and use a shortcut to put in brackets.

    You can also consider this. It will avoid having to carefully select the text and simply place the brackets after the last word of the selection (or even just a text cursor blinking) and before the first word:

    s = app.selection [0];

    s.Words [-1] .insertionPoints [-1] = .silence '] ";

    s.Words [0] .insertionPoints [0] = .silence '['; '.

  • Problem formatting Scatter the chart axis

    All,

    I'm trying to format axes on an XY scatter chart to display 0.0% vertically and horizontally to OBIEE 11.1.1.7.140527 0,0. I tried to set the format in the properties for chart point as well as the properties of column cloud (using these two formats appear in the list and the custom) and none of these approaches to return the correct format. The numbers keep appearing without formatting - that is, 90.0% appears to be 90 on the vertical axis. Also as a record, when I fly over the points of real data on the graph, the values are made 1 decimal place (so I know that they are not truncated), but the % does not appear after the vertical data point.

    Does anyone else have this problem? If so, how to solve it?

    Thanks in advance for your help.

    Thanks for the photos (make it easier to visualize exactly what you are looking for).

    The strange thing is that I'm trying now to build a chart like yours, and all defining the format of my vertical measurement in % place you in the y-axis % and keep the axis X for normal numeric values.

    And I also found (mistakenly) where you can force the graph to display the % on axis Y.

    There is a problem during the definition of % in the property "Abbreviations": your measurement is 0 = 0 and 1 = 100%.

    If on the other side, that get in shape column or a percentage in the criteria tab measurement is 0 = 0%-100 = 100%.

    I use exactly the same as you, OBIEE and defining the format of data in the criteria for my Chronicle of the axis tab of Y of the clouds of points automatically graph showed me the values of %.

    There is an additional "detail": you lose % if you don't have a column in the 'Points' of the graph area, but you moved your column to "vary By color.

    If bring you a column 'Points', the % will be on the Y axis, if you have a column only in the "color vary by" you lose %. You can get them back by using the properties of the axis, but don't forget to add a 100 to your measurement (and on the mouse on the screen data will be skewed as it will show % 0-1 instead of 0 to 100).

    So I suggest to add a second instance of the same column that you use in "color vary by" and put in the area of 'Points '. % will return and you keep multiple colors. On screen, a mouse you have twice the same value on the screen, but it's probably smaller questions that you can live with if you get your good axis.

    (PS: I hope that makes sense...)

  • Renumbering of the numbers

    Hi all

    Can someone help me I have a document that contains many said for example that there numberes from 1-100. Here, I want to remove numbers from 1-100 for example say 22, 23 and 23 after the removal of these figures, I want the rest numberes numbering the final number should be 97.

    Im trying with the code but cannot find the answer below.

    myDoc var = app.activeDocument;

    app.findTextPreferences = null;

    app.findTextPreferences.findWhat = "^ 9;

    app.findTextPreferences.position = Position.SUPERSCRIPT;

    var myFound = myDoc.findText ();

    change of var = 0;

    for (var i = 0; i < myFound.length; i ++) {}

    myFound [i] .appliedCharacterStyle = myDoc.characterStyles.item ("Sup");

    {If (myFound [i] .appliedCharacterStyle! = {myDoc.characterStyles.item ("Sup"))}

    app.changeTextPreferences.changeTo = "" + change;

    change ++;

    myDoc.changeText ();

    }

    }

    Thanks in advance,

    Kind regards

    Learner

    So you have to get numbers, no numbers, use Grep to find all the numbers: \d+

    Find all the numbers and replace their contents with the value of the counter of the loop for. no need to bother with that content really is.

    Then you have to work at the end of the numbers found in the beginning because the length of the number wioll change, for example 10 (two digits) can change to 9 (one digit). Like this

    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = '\\d+';
    app.findGrepPreferences.position = Position.SUPERSCRIPT;
    numbers = myDoc.findGrep();
    for (i = numbers.length-1; i > -1; i--){
        numbers[i].contents = String(i+1);
        numbers[i].appliedCharacterStyle = myDoc.characterStyles.item("Sup");
    }
    

    Peter

  • Find all the numbers between 100.0 75.0 and apply "BOLD" format using GREP

    I am trying to find each number in multiple documents between 75.0% and 100.0% and change their "BOLD" format. Is there a GREP code for this or maybe a script code? Thank you!

    -J

    How is this:

    ((8\d{1}\.*\d*)| (9\d{1}\.*\d*)| (7 (5: 6: 7: 8: 9)). 100) %

    It worked on my sample.

    As changed search was actually my first soultion, but I tried to consoidate. He has worked on all the numbers in my first example, but failed on the number 88% on my second try.

  • Grep which finds quotes and review for those on the right, but only after the numbers...

    Hello

    I'm trying to find all the quotes that follow the numbers and turn them into quotes.

    I'll try to put this in a GREP style eventually, but in the meantime, I examined it with find and change.

    Here's what I did... but it does not work.

    To find it - I have a positive look behind to find a digit, then pasted into the curly quote

    Fort of change to-I found the Unicode value for the right quote.

    But it did not work ;-(

    any thoughts there!

    Babs

    Picture 1.png

    «is any sort of double quotation marks (straight, curly, opening and closing).»

    To force some sort of quote, use one of these:

    ~ {double opening curly

    ~} double closing curly

    ' ~ ' Straight

    "(Remplacez seulement) uses the typographer use quote setting (that is, if on, change to appropriate completed open or close, otherwise use the right)"

  • my iphone is locked more 6 s - I know that my password - it works come not square around the numbers and nothing happens

    my iphone 6s more is locked - I can't get into my phone - I don't know not my password - I tried - it puts a square around the numbers of password - it say I need my fingerprints to do - I have try - it does not work - what should I do to get into my iphone 6?

    This means that you are likely to not put in the correct access code.  If you never restart the device, you will need to put in the code for the first time, then later, you can use your fingerprint again.

    If you remember the password, you can then follow these instructions.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • RegExp with padding for the numbers

    Hi all

    I have a column VARCHAR2 representing Article and paragraph of a document and I need to sort in a sophisticated this column method.

    The problem is that because this value is from a form using free text, the format is quite heterogeneous. Then we would have something like:

    select '1' as section from dual union all
    select '7(1), 8(3)' as section from dual union all
    select '9(2)(b)' as section from dual union all
    select '11(1)(c)' as section from dual union all
    select 'Annex VI' as section from dual;
    

    the problem is that if we use the lexicographical order, that we'd end up with 11 front of 9.2 b (1)

    select  section from (
    select '1' as section from dual union all
    select '7(1), 8(3)' as section from dual union all
    select '9(2)(b)' as section from dual union all
    select '11(1)(c)' as section from dual union all
    select 'Annex VI' as section from dual)
    order by 1;
    
    SECTION
    ----------
    1        
    11(1)(c) 
    7(1), 8(3)
    9(2)(b)  
    Annex VI 
    

    It is true that articles go not beyond say 1000 thought I replace all the groups of digits of 0 left padded values. An expression that I would get the right result

    select  section from (
    select '001' as section from dual union all
    select '007(001), 008(003)' as section from dual union all
    select '009(002)(b)' as section from dual union all
    select '011(01)(c)' as section from dual union all
    select 'Annex VI' as section from dual)
    order by 1;
    

    SECTION

    ------------------

    001

    007 (001), 008 (003)

    009 (002) (b)
    011 (01) (c)
    Annex VI

    This can be achieved with regexp?, the thing is I can locate the numbers and normally the depth of numbers would be only 2 directions 1 (2) and no 1 (2) (3) so with 2 nested regexp_replace could be good. The thing is that I don't realize to fill in the 3rd parameter:

    Best regards

    Hello

    Using REGEXP_REPLACE to fill in the numbers:

    SELECT section

    , REGEXP_REPLACE (REGEXP_REPLACE (section - for debugging only

    , '(\d+)'

    , "000\1".

    )

    , « 0+(\d{4}) »

    , '\1'

    ) AS sort_str

    ARTICLE

    ORDER OF REGEXP_REPLACE (REGEXP_REPLACE (section

    , '(\d+)'

    , "000\1".

    )

    , « 0+(\d{4}) »

    , '\1'

    )

    ;

    The inner REGEXP_REPLACE adds 3 major 0 ' to all numbers, so that all the numbers are at least 4 digits.

    Removes from the external REGEXP_REPLACE 0 ' to all numbers, so that all numbers are exactly 4 digits.

    In Production, you will not want to repeat the expression in the SELECT clause. I just did here to help us see what's going on.

    Output:

    SECTION SORT_STR

    ---------- ------------------------------

    1 0001

    7 (1), 8 (3) 0007 (0001) 0008 (0003)

    9 2 b 0009 (0002) (b)

    11.1 c 0011 (0001) (c)

    Annex VI to annex VI

  • Joint "workflow" format in the Adobe CS5 Suite for 2 k output

    I have also several formats of footages REDS in 2 k, 4 k, set to share files DPX 2.35 anamorphic format and DSLR footages.

    We would like to complete post-production in the Adobe CS5 Suite. Change in first, Compositing & rank in Aftereffects with color finesse.

    Our final production would be in 2 k DPX Master sequence @ square pixel aspect ratio - 2048 X 872

    My doubts are as follows:
    (1.) while working, we would need to PAN and Zoom in RED 4 k files. What is a good practice to do in cs5 first?
    (2.) what are the setting of the recommended draft and interpret the images settings?
    (3.) I plan to import all the footages as it should the first and assume like 24 fps using the parameters to Interpret images. Is that it is a good practice to do in cs5 first.
    4.) since my output will be 2 k, is that what I can change RED 2 k settings to 2048 X 872 @ 24 fps @ square pixels format and continue to change?

    I've been through this article
    DAVTech Table - editing with RED 1.7 technical presentation. It deals only with RED.

    Concerning
    Siva

    I do several framesize and format all the time of editing in Premiere Pro...  It's one of the things I like the most on the body.

    You have a few options...

    I would like to make a sequence setting personalized with your image size and frame rate objective.  It is a sequence of "desktop".  you will have simply evolve your material as you see fit.  Your RED can be shrunk to fit the frame, or pan and scan or a bit of both?

    You can actually run the shade of color in the body if you have couple of the system.  I might suggest to take a look at Magic Bullet Colorista 2, it's a tool for color correction at the same level as the rest of the range of products of MB... all very good.

    If you have decided to go this route, you will get the best color fidelity in the sequence settings and by ticking the 'binary maximum depth' that tends to do everything which is not limited to 8-bit (like your DSLR footage), as your RED and DPX files (I suppose in all cases), 32-bit float to preserve its color accuracy and color correct far.

    HOWEVER, I myself would get a breathing fire Monster of a workstation to run this logical cores of way-8 hearts physical/16 MINIMUM with 16 GB of RAM with a card Quadro with a DisplayPort output out 10 bits for the ranking and then get a 10-bit display.

    I think that with a computer system right, you'd be surprised to know how well Agency will accomplish this... and no it won't be cheap, but for any other route of NLE workflow, you'll be transcoding all... In the 1990s, I had 50 000.00/pc into Media 100 work stations with all exclusive components, etc... make everything...

    If you have spent between 7 and 10 000.00 on a workstation for CS5, you would have a system that online publishers could not be photographed in their wildest dreams 5-7 years.

  • Automation of the numbers for invoices

    Hello

    I want to write a script for the numbers to allow me to create invoices. I want my script to insert a new number (in sequence) whenever I open a new worksheet.

    I tried this script using the page number, but could not get by

    Please help me

    Best regards

    Daryl

    Oops...

  • How to get the numbers to remember a list of answers column on nine or more tables using the same format

    I'm new to numbers but were mainly use it to organize only a simple way to display the cases that arise in a criminal background check. So for a table, I can type driving while license revoked (DWLR) as the load and from there on the charge will fill itself or offer similar responses after typing a single key.  A well appreciated time saver but problems I can sort and summarize the criminal history for 10 people or more at a time and need to do it urgently often.   However when I opened a new table I have to cross and type a new the precise wording of a charge, its disposal (Guilty, voluntary dismissal etc.)  and just know that there is an easy way for the numbers to know in a new table that, if finished it is a list annoyingly long term broken criminal code list and do not have to do that in each new table so that it can take.  I know I'm missing something very basic, but any help would save hours for me and the other poor interns who spend twice as long just to undestand the case and troubleshoot.  Thanks for all the ideas!

    David

    Hi D,

    The AutoComplete feature provides suggestions picked on data entered in the cells above the one you are working in. You can automate the process by preparing a "full menu" table containing ALL the possible inputs for each column in the rows below the header lines.

    The checkbox in cell A1 is a switch, is used to insert the word HIDE in the cell that contains the list of AutoComplete terms. Cells in this area are filled with bright red to draw attention to them when indicated.

    A rule to reorganize (shown and applied below) hiding these lines when the box is checked.

    Hide the lines does not affect the operation of auto-complete, as shown in the table below:

    When the form is competed, action depends on how the result will be recorded and filed.

    If there is no need to edit/modify the file, it can be converted to a PDF using the print dialog. This produces a copy of the displayed part of the document only.

    If the document will require more editing, you can remove the lines containing AutoComplete suggestions. Clear the check box, select all the red lines filled, click the triangle in the row reference tabs and choose Remove.

    Formula in A2 - A10: = IF(A$1,"HIDE","")

    Kind regards

    Barry

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

Maybe you are looking for

  • Yahoo mail - the font size increases with each 'Enter' - * solution *.

    I raise this issue because pending a previous thread on this was closed, and I have a solution that works for me. The question is in Yahoo mail. When you compose a message in full HTML view, the font size increases with each return (newline or 'Enter

  • Time Capsule or airport repeatedly loss of internet connection

    Greetings, Last month, I had a problem with my Apple Time Capsule and my cable company router intermittently lose Internet several times a day between.  This has happened several times a day.  My Time Capsule, Airport utility would show a 'green' sta

  • Support for id3v2 added 2.4 anytime soon?

    It seems that Fuze (also, each Clip) does not include id3v2 version 2.4 tags.  Some of the tools I use insist on writing on 2.4.0 tags and it becomes tedious quickly convert them to version 2.3. Support for id3v2 added 2.4 anytime soon?

  • Microsoft Life Cam

    I connected just a new MS life Cam to the PC WIN 7, no response from the PC & no instructions

  • Problems with my puppets

    HelloI went through the tutorials and still having problems with my puppet.I've set up using the mouth of the puppet by default but when I import it into animation character that is not move the mouth to the side view.Here is the link to the file dro