Repetition within the eye behind GREP

I can't understand why my GREP will not work.

( ? < = ^ \s*\d+) [\l\u]

I want to find a paragraph that begins with zero, one or more spaces, followed one or more numbers that is followed by a letter. But I want to only select the letter (to check that it is formatted and apply paragraph styles accordingly) and not the spaces/numbers. However, it seems that I can't use the + and * operators inside a function of postanalyse since these searches reveal nothing.

The following expression works, but it includes spaces and numbers:

[(? < = ^) \s*\d+[\l\u]

And it works, but only works for the two places of first and a number:

(? < = ^ \s\s\d) [\l\u]

I could manually change the expression to match the four different ways that are needed in my document, but I'd rather it can be solved with just an expression.


Lookbehinds must be of a fixed length, you can't use all the operators +, *, or?. In addition, the behavior with ropes of different lengths gold is, well, "undefined" (memory: I think that only the longer string is considered as?)

For a simple query, one or two digits for example, you can use the OR operator, like this:

((?<><>

but you're talking about * any * followed by a number of spaces * any * number of digits. It is a large number of combinations of GOLD.

SimonLinden wrote:

..  This works but only works for the two places of first and a number:

(?<>

I could manually change the expression to match the four different ways that are needed in my document...

If it is only four, are those one or two spaces, one or two digits? That should be possible.

Tags: InDesign

Similar Questions

  • ODI - separate use within the eye field

    Hello world
    in my project, I have an interface with the table 1 source and 1 list of choice, what type is "expression in the select clause sql".
    Here's the problem:
    How can I set the ONLY distinct in the subquery? If I write "distinct" before the mapped field, put it outside the subquery, ODI so that the code is not valid
    I.E.
    I would like something like this:

    SELECT a1,
    A2,
    A3,
    (SELECT DISTINCT a4
    SEARCH where lookup.field1 = source.field1)
    SOURCE

    but to do this, ODI:

    SELECT a1,
    A2,
    A3,
    SEPARATE (SELECT a4
    SEARCH where lookup.field1 = source.field1)
    SOURCE


    How can I reach my goal without using the distinct clause in the workflow?

    Thanks in advance

    Hello

    I would create a first temporary interface (yellow) with your research as source data store and exactly the same columns in the target. Tab flow, thick 'distinct lines' check box.
    Then in your other interface, where you can choose the table of your choice, click the Interfaces tab instead of data store. Find your first interface and thick 'use Interface as derivative temporary Table '.

    It should do what you want.

    Kind regards
    JeromeFr

  • Through remote access vpn Ipsec within the host is not available.

    Team,

    I have a question in confiuration vpn crossed.

    ASA 3,0000 Version 5

    the only question is, to access remote vpn clinet IP cannot access inside the host. However able to reach the branch of IP and it uses corprate Internet.

    In SAA from the external interface I am able to ping remote clint IP but not from within the interface. Please help and let me know if additional information is required.

    Thank you

    Knockaert

    Hello

    For the NAT0 configuration, you only need NAT0 instruction for the interface "inside".

    This single command/ACL should allow for 'inside' <-->'vpn-pool' communication.

    NAT0 configurations on the 'external' interface should be necessary only if you make NAT0 between 2 VPN connections. I guess you could do this since you mention traffic crossed?

    I suggest using different 'object-group' to define networks of NAT0 destination for different ' object-group' to the 'outside' to 'outside' and 'inside' users NAT0.

    I also obsessively using beaches too wide network in the statements of NAT0. According to some records, they can cause problems

    For example, this network ' object-network 172.16.0.0 255.240.0.0 "contains the 172.x.x.x.x set private IP address range. And in this case it contains some of your 'inside' networks too?

    How is this a problem of crossed by the way? You say that the problem is between the VPN clients on the 'external' interface and network local hosts behind the 'internal '? Crossed would mean you have connection problem between 'outside' <->'outside' perhaps.

    I don't know if I made any sense. Can be a bit messy. But can not give very specific answers that I don't know the entire configuration.

    Also make sure you have the "inspect icmp" configured under the policy-map of the world, so that the response to ICMP echo messages are automatically allowed through the ASA.

    -Jouni

  • Point to add to the script or Grep Style?

    Hello

    Is it possible to add a hightlight to a script?  Basically, what I want to do is highlight the text and the tricky part is that the text changes size depending on the size of the file, we are working on that.  I want to highlight automatically the "FOR PROFESSIONAL USE ONLY" the way that we do now is to underscore that in the menu options underscore: say my font size is 8, leading 9.6 (these will always change).

    Weight: = 9.6

    Shift: = - 8*.33

    Color = yellow

    It's the way we do now.  Can it be scripted or Grep style which will automatically do this for certain lines of text only?  And no matter the font size calculate what he needs to do if its 2pt, 10pt 100 PT etc... It will highlight the text specified correctly?

    I hope it's possible...

    Thank you

    The lower one is best.

    I remove a bug and also if not 'what' is provided to the point function culminating and there is no entry in find it which is the find panel of text and text is selected, then this text is highlighted.

    An idea in the script is that a shortcut can be applied to it and it will get its information from the Panel of text search.

    So for now to change the answer to this one

    // Highlight function by Trevor
    // http://creative-scripts.com
    // Custom Scripts for Adobe InDesign, Illustrator and a lot more
    // Beta Version 1
    // https://forums.adobe.com/message/8898663#8898663
    
    function highlight(what, color) {
        var range, s, doc;
        doc = app.properties.activeDocument;
        if (!doc) {
            return 'No Active Document';
        }
        s = app.selection && app.selection[0];
        range = (s && s.properties.underline !== undefined && s.characters.length) ? s : doc;
        app.doScript(f, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'Highlight Text');
    
        function f() {
            var finds, find, l, leading, pointSize, currentChangeProps;
            color = color || app.activeDocument.colors.itemByName('Yellow');
            // Store current find change text settings
            currentFindTextWhat = app.findTextPreferences.findWhat;
            currentChangeProps = app.changeTextPreferences.properties;
            what = what || currentFindTextWhat;
            if (what !== '') {
                // if no what is provided then the current entry in the find text panel will be used
                app.findTextPreferences.findWhat = what;
                app.changeTextPreferences.changeTo = '';
                app.changeTextPreferences.underline = true;
                app.changeTextPreferences.underlineColor = color;
                finds = range.findText();
                range.changeText();
                l = finds.length;
                while (l--) {
                    find = finds[l];
                    leading = find.leading;
                    pointSize = find.pointSize;
                    leading = pointSize * find.autoLeading / 100;
                    find.underlineWeight = leading + 'pt'; // This is presuming that font and leading size is set to points!
                    find.underlineOffset = (pointSize - leading) * 1.5; // The 1.5 might need tweaking but seems to work well
                }
                app.findTextPreferences.findWhat = currentFindTextWhat;
                app.changeTextPreferences.properties = currentChangeProps;
            } else if (range !== app.activeDocument) {
                leading = range.leading;
                pointSize = range.pointSize;
                leading = pointSize * range.autoLeading / 100;
                range.underline = true;
                range.underlineColor = color;
                range.underlineWeight = leading + 'pt'; // This is presuming that font and leading size is set to points!
                range.underlineOffset = (pointSize - leading) * 1.5; // The 1.5 might need tweaking but seems to work well
            }
        }
    }
    
    /***************************************************************************************************************************************
    ** If text is selected then the "highlighting" is only applied within the selected text                                              **
    ** Otherwise the "highlighting" is applied within the whole document                                                                **
    ** One could change this to apply to what ever is selected in the Find text document if one wanted to                                **
    ** To highlight the word(s) in the find text panel just use highlight(); or highlight(undefined, app.activeDocument.swatches[5]);    **
    ** One can use highlight('Foo'); to highlight "foo" and ignore what's in the find text panel                                        **
    ** The formating / styles etc. for the find are taken from the find panel                                                            **
    ** If one provides a swatch as the second argument highlight(undefined, app.activeDocument.swatches[5]); that swatch will be used    **
    ** otherwise yellow will be used                                                                                                    **
    ** If one provides a swatch as the second argument highlight(undefined, app.activeDocument.swatches[5]); that swatch will be used    **
    ** If text is selected and what argument is given and the find what in the find panel is empty then the selected text is highlighted **
    **************************************************************************************************************************************/
    
    highlight();
    
  • Basic function ideas - choose the length to export / scene duplicate / easy to select all the performance to delete within the scene

    While using character animation I just had some ideas for features which can improve the user experience, I'm sure that you already have some of them in the works, and maybe some are already here, but just in case where they are here:

    -When you export a scene be able to choose the start and end of the scene you want to export via a dialog similar to how it works with premiere pro. For now, it seems that you can export the entire scene. (You can always change the length of the scene within the editing area of scene or adjust performance thereafter, but it can reduce render times)

    -The ability to reproduce a scene by clicking right (like how you can duplicate layers in other adobe products) - this would make it easy to copy all the parameters of a scene as head, eyes gaze tilit force ect.

    -Save the project under function

    -Possibility to make animation in a button earrings (just say I put a folder name to walk sequence (1!) in photoshop, it would be cool if when I press 1 keypad it rotate between images in the folder, then I could make the character walk or other functions (you can then position tween character after going in sequels) also have the ability to set framework inbetween calendar change) (I saw a feature like this in the timeline of photoshops when working with animations)

    It is a great program with an extreme amount of potential for the animation industry!

    -Choose the length of time of the beginning and the end of the scene

    Yes. No doubt necessary. The AE and PR have workspace toolbar and I think this is the direction that we are heading towards as well.

    -The ability to reproduce a scene by clicking right (like how you can duplicate layers in other adobe products) - this would make it easy to copy all the parameters of a scene as head, eyes gaze tilit force ect.

    I think already works, but it's Ctrl + D / CMD + D. I'll add a feature here request lift menus contextual and running for operations like this.

    -Save the project under function

    CH is a very interesting model, which is quite a bit different from the apps we all know and love. On the positive side, you can keep your history of any cancellation, even after the abandonment of the app. We * definitely * need a way to save revisions, but we will probably in the form of 'snapshots' who live within your project. For now, you can duplicate your project folder, but we recognize that this isn't a good solution in the long run (or even in the medium term).

    -Possibility to do loops run within a key

    Yay. We can do it. Look at our ' cycle layers ' and behaviors "keyboard triggers. Together, they are very powerful. The 'examples' project posted in the forum has examples of this work.

    -It is a great program with an extreme amount of potential for the animation industry!

    Thank you! We are very excited about it. We know we have a long way to go, but we will improve the application of every day.

  • Masks or with other layers of information alpha? for students inside the balls of the eye or mouth etc. animations.

    Introduction of my character and looking at your other characters I noticed that you do not use masks to get the illusion that the pupils and eyelids have remained within the region of the eyeball.

    Rather you used one type 'mask eyes cutting' layer on top (as something that carries the Green Lantern).  It's a clever work around, but it does not work if you have the eyes of floating Googling.  I can live with that for now, but I like to create characters with large pupils, while she poses a problem when I have a small head and large students.

    You guys are looking into this or do you have a work-around to prevent students from floating off the coast of the eye that I don't see.

    I understand that the "# Eyeball" layer is your limit of movement based on origin of students. In order to have a layer of "Eyeball" more small to limit the movement to a larger layer to be the true white of the eye.  I find this better than the setting of the "strength of the Eye gaze" in c.

    Thank you

    Sam Keomanivong

    Art Director

    Amplomedia

    We intend to implement cutting at some point and will review this request another for it, thanks!

  • Invert the selection in GREP

    I came with a GREP expression to select a paragraph that has a string of text within the parenthesis. It is ^.*\(.+\).*$. It works very well. However, what I really want to do is select all the other paragraphs which do not have this string and remove them. I saw something on a Linux site speaks of an option -v , but it did not work for me, or I don't know how to use it properly. Anyone have any ideas?

    Thank you

    Randy

    This GREP:

    ^[^()]+$

    Selects all paragraphs that are not (or).

    Peter

  • What is the hole behind the Apple brand on the iMac 21 "?

    What is the hole behind the Apple brand on the iMac 21 "?

    Don't know what you're talking about. A picture would help.

  • How to play the next song with the repetition of the same song over and over again

    How to play the next song with the repetition of the same song over and over again.

    In this screenshot, shot an Apple article, you can see four icons at the bottom of the screen. Look at the third argument of the right, with the two arrows going in a circle. It's the repeat function. When turned on, you can tap the icon to turn it off.

  • Can we get rid of the eye on the front page? Me slide out!

    Filled with the sign the petition for INTERNET security. Now I can't get rid of the eye on the front page. I want to get rid of because I've already signed. The eye slips out, can it be done away now?

    I am in the United Kingdom and do not see it, but I doubt that Mozilla put there. However I see you are using a theme, then in the case which is originally he Try Firefox Safe Mode see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "Start mode safe" - does NOT REFRESH!

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    If it goes further, remove the theme and if you need to reset the homepage, please see my initial response.

    By the way, you should be able to see the homepage at any time by typing on: House in the address bar and pressing ENTER.

  • After the update the new version cannot determine file downloads. In the eyes to determine the file, but download files go in C / documents and settings even

    After the update the new version cannot determine file downloads. In the eyes to determine the file, but download files go in C / documents and settings even if I chose another folder

    Hello, there is a general regression in firefox 27 allowing any files to upload directly to a root drive. Please try to create a subfolder (like D:\Downloads) and set as the default location for downloads...

    See also bug #958899.

  • When I open the camera back, there is a small point on the screen. Tjere is no visible scratches on the lens of the camera at the back. There is a scratch on the lens behind the protective glass?

    When the main unit is opened, a little tiny dot appears in the same place on the screen each time at and clicked too photos. There is no visible scratches on the lens of the camera. Could there be one on the lens within the lens glass on top?

    Consider Apple & will replace your unit with a new one if your unit is under warranty

  • Updated to firefox9 and now when I use extension of tree style tab the screen goes black, with the exception of the "window of the tab" and the part of the screen behind him

    Update firefox9. Using tree style tab extension. Everything works fine, except that my screen goes black when in 'tab window', with the exception of the window of the tab and the part of the screen behind him. Once out of the tab section everything comes back fine, but it is rather annoying. Checked homepage for the extension and have the updated version, firefox add-on page - it also says that it is compatible. Any ideas on that?

     Am realizing pages will stay on as long as I don't move the mouse,but as soon as I do move it,black goes the screen.
    

    Ok. A installed version 1.4? Manufacturers homepage. This is apparently what caused problems. Get rid of this and installed version 1.3? Since firefox add on the pages. Problems solved...

  • The background behind my toolbar was gray, but after update, is now black. How can I change to gray?

    The background behind my toolbars and tabs at the top of the screen was grey, but now after the update of firefox, is black (or maybe clear, because my desktop icons appear like ghostly blurs). How can I change to gray?

    See:

    Right-click in the free space on your desktop.

    Left click on personalization.

    There are four options in Windows 7 at the bottom of the screen, select 'window color and appearance '.

    Select a border color

    Uncheck the box: "enable transparency".

  • Free app from Merriam Webster found within the Starbucks App

    Hello, the starbucks in messages app, it is supposed to be an application of Merriam Webster's dictionary for free (value of $3,99 otherwise). By starbucks, this free app is available until May 24, 2016. I have nothing in the messages. I deleted the app off my iphone for a few minutes, turned the phone back, re-installed the app, signed on my account of starbucks in the starbucks app and still nothing. I called the service customer starbucks, and they suggested that contact iTunes or the App Store for resolution. Can anyone help to understand why the dictionary app does not appear within the app from the SB?  Thank you.

    I suggest you contact the support for the app of Starbuck. He is not an apple product.

Maybe you are looking for

  • Stop to remember the download locations

    Firefox remembers the last place I saved files from different sites. I need to disable this option. The "browser.download.lastDir.savePerSite" option is set to False, but this does not change this behavior. Deleting the .sqlite file associate does no

  • channel-to-channel isolation for the NI9205/9206 differential configuration mode

    As indicated in the data sheet of NI9206 /***************************************************************** Maximum voltage Connect only the tensions that are within the following limits. HAVE to COM, PFI0 com and DO COM... ±30 VDC Isolation voltage

  • error 509 Exec.cpp

    I have a problem with my project.  Suddenly, there are a few screws class which cause complete labview crash - I get an error in EXect.cpp on line 509.  Kind of weird though - as the vi in question has not edited for a work identical older version in

  • Problem with LabVIEW 9.0f2 and VISA 5.0 on Mac OS x 10.6

    Hello I'm using MacOSX 10.6 and Labview 9.0f2. I installed the lates VISA (5.0.0) drivers, as they are the only support OSX 10.6. Now, I try to run the "basic series write and read" example and get the following error: Error 1073807343 has occurred t

  • converter

    I want TO m4 and I need to know if I need a converter to use my laptop in report and the Portugal. Any help will be greatly appreciated. BonnieRuth