Question of expression grep

Hello

I've been using

app.findGrepPreferences.findWhat = "(^\r)|)" (^.+\r)";

var line_list = app.selection [0] .findGrep (false);

to break the current selection in lines / paragraphs.

It seems that it would break when there is a full stop (period) to the line.

My question, is there a way to get the content of a line / para, including any number of full stops (periods)?

Best.

P.

Hi P.

(1) I might be misunderstanding you, very uncertain, but it looks like you just want.

App.Selection [0]. Paragraphs.everyItem (.silence)

No Greps or research.

Grep, you wrote would not stop at modeled / periods.  The '. ' in the grep is a wildcard for any character.

HTH

Trevor

Tags: InDesign

Similar Questions

  • Most clean way to write this expression GREP

    Hello

    I have a GREP expression which is now:

    InDesign

    InDesign CS

    InDesign CS2 (or 3,4,5)

    InDesign CS2 (or 3,4,5)

    .. .and this is what it looks like... I don't know there is a way to write, but I can't ahven managed to run... any thoughts there ;-)

    Picture 12.png

    Thank you!

    Babs

    Hi Babs! Chips a glance, shall we.

    First of all, I fill a frame with placeholder text; then I add "InDesign" and all its variants up randomly in the text, with spaces around and there followed by punctuation.

    Then I create a character style "Hi-lite" adapted; a light blue background, so I can see exactly what is being matched. Then, I go to my definition of standard paragraph and create a GREP style with Preview on. Then it's just a case of the entry of codes and look at the preview.

    Hang on while I do it. (You can use a ready earlier.)

    Here you are:

    \bInDesign (CS [2345]?)? (~]s)?\b

    fits all blue below. Note it does not match "InDesign CS6" (and more recent); If you do not want to be prepared for the future, you would use

    \bInDesign (CS\d?)? (~]s)?\b

    Look at how the combination of parentheses and question mark together define strings: it's all or nothing with those. The \b's are just to force - define whole words, no funny stuff admitted directly before or after the speech - punctuation is fine.

  • Question Airport Express.

    I'm so confused. I'll try to keep a long story short. I lost my internet connection a few weeks ago, and instead blame Mediacom, I blamed my old airport of 12 years and I bought a new Airport Express Terminal (with a new ethernet cable to replace a at least 20 years. While the implementation of the new Terminal Airport Express, I was unable to get anything to work and finally called Mediacom. The problem was indeed at their end, where the cables to connect in the basement of my four-plex apartment.

    Now to cut to the Chase: given that I reproach myself my own equipment and not of Mediacom, I managed to set up two connections Airport Express (call Network1 and Network2). When I restart my computer, it connects inevitably to one or the other, but never the same. It connects only to those who, at the time, won't let me connect. So I turn to the other and all are well again. At the same time, when I get home, my iPhone will almost always automatically connect to the network which does not connect to the internet. It might work with Network1 while my computer only works with Network2. Same thing with my iPad. It is either 1 or Network2, but never both, and never the same. The three units can be on different networks at the same time for each group in order to connect to the internet.

    So my question (s):

    How can I remove one of the networks so that it completely disappears? There is apparently some kind of criss-cross current that confuses my computer and its peripherals.

    If I delete that which does not (at the time), I ALWAYS keep one connect correctly or I need to reset my Airport Express and start from scratch?

    I even does not start in the subject what a pain it was to connect my Tivo to my wireless network, because it works too only with one or the other. And I still have my printer wireless to set up.

    Help/suggestions/explanations are greatly appreciated. I've been using Mac and set up networks since the dark ages, but it left me speechless.

    The Airport Express should not have 2 networks unless you have enabled the guest network. Is it possible that your Internet router has a Wi - Fi network on it as well?

    I highly recommend you reset the default Airport Express Terminal and try again. It's really the only way you are going to get a suitable resolution.

    It is also possible that your network of old and new settings are still in iCloud keychain and causing some confusion.

    I would recommend you disable iCloud Keychain on each device, then make sure that you forgot the network name on each device.

    Recreate your wireless network (giving a new unused name so you can tell if it's all working), then log in to the network without wire on each device, one at a time, making sure the internet connection works.

    You can then re-enable iCloud Keychain if you wish.

    Good luck.

  • Why the expression GREP should two back-slash?

    Hello.

    Curious question:

    I have the following code:

    psYSbody.nestedGrepStyles.add({)

    appliedCharacterStyle: csYSimporedPsukimMekor,

    ({grepExpression: '\\(.+?\\)'});

    Why it only works if I have a double-backslashes in front of "()" and "[]"?

    If I don't have that a single backslash it totally ignores the backslash.

    Could someone explain this oddity?

    Hello

    The character ' / ' is an escape character. For example, if you want to attract the attention of 'the 'big' cat' with the cat of Word in a sense of quotes to do is alert ("\"big\"cat");

    Because you provide a string that you need to escape the escape

    Try the following 2 examples

    alert("\(") // => (
    alert("\\(") // => \(
    

    What you want is the second example as the 'correct' grep is------(and not)

    I have it?

    Trevor

  • Question to replace grep

    I try we GREP in the script to change the style of certain words designated by the markup. For example: ' the ^ SUN ^ and ^ MOON ^ are heavenly bodies. "

    App. FindGrepPreferences.FindWhat = "(\ ^.)" + ? \ ^) »


    I use this default grep to search for "^ SUN ^ ' and ' ^ MOON ^ ', and I can't change their characterstyle, but also, I want to delete the" ^ "brand at the same time if possible.

    Is it possible to define an expression in my .toChange property so I can replace my selection with everything in between ' ^ ' brands? In other words, I want to change "^ XXX ^ ' to become 'XXX '.

    app.findGrepPreferences.FindWhat = "-^(.+?)". \^"

    app.changeGrepPreferences.changeTo = "$1".

  • Help me remove the zeros and add the decimal point using Expression GREP

    Hello, I have a few numbers... A few thousand to be exact I need to drop some zeros and add a dollar sign and the decimal representing the cents, how can I do it using GREP Expression. An example of the number would be: 000000000396465 or 000000000044813, it will be always 15 characters, I would like that to be converted to this:

    $3964,65

    $448,13

    Thank you

    Use Adobe CS5 on Mac

    Great, it worked! You just saved me weeks of work.

    Thank you

  • Satellite M40-237: Question about Express card slot

    My computer has a multiple media card on the side of my computer doing. On the left side, I have PC card and Express card slot location. I know how to use the multimedia card slot and pc. bBut card slot I have a problem with my Ekpress because I do not know how to open the slot...

    I hope that you will help me...

    Hello

    As you suggested on the left side of the laptop, you can find a PC card slot. This property sleeps on PC card (Type II 16 and 32-bit)
    Above this slot machine, you will find slot express card which allows you to install as additional express card.
    To install an Express card please
    1. Insert the Express card,
    2. press gently on a closed connection,.
    3 check the configuration in the window settings HW to make sure it's appropriate for you the card.

    This description you will find also in the Manual - Chapter 8
    Check it out.

  • Question of Expression If-Then

    I have a need of branch on an out parameter greater VI...

    Given the following list of call partial VI settings

    ...

    + Error in
    Success/failure?
    Text of the report
    -Real HB
    WBL area B PL Number (U8) Out (checked)
    WBL area has PL Number (U8) Out (checked)
    ...

    I tried

    Step.Result.HB Actual.WBL area B PL > 0

    as my conditional expression...

    Got the report

    Hi Pat,

    It seems like if you try to reference the parameter names of VI in the TestStand Step.Results, is this correct? I would not have expected to see in Step.Results unless you have created a custom step type.

    What you have entered in the field of values for these parameters VI?

    Kind regards

  • Newbie question: outlook express deletes messages from my hotmail account?

    I have several acouts hotmail.  I want to start using Outlook Express (or Eudora or other) as my email on my PC client but want full access to my emails on remote PCs via Explorer.  Outlook Express will download all the messages in my Inbox in?  Will he disappear from my hotmail account?  Or is he just leave my only hotmail accounts?

    You can access your Hotmail mailbox by using a POP account in Outlook Express and, Yes, unless you configure the account to leave messages on the server, it will remove them from the Inbox when it downloads, as well as all appropriate POP clients.  Simply set up the account in order to leave them on the server.  It will be on the Advanced tab of the account properties.  See this: http://windowslivehelp.com/solution.aspx?solutionid=99d4b13d-13db-40d8-9cdf-172002d4194c

    Also, remember that access to a POP mailbox has no notion of folders.  Only what is in the Inbox will be visible to any client POP, whatever you use.

  • Question about expressions in AE

    I don't even know what to look for on google to find the answer. So after an hour poking around inside the AE and the failure in the google search, I come here to ask for help.

    I have a (S.redgiant Sound Keys) plugin that gives the values as keyframes for each image. And the values exceed as: 0, 4, 7, 3, 5, 0, 0, 5, 6...

    In other words, they oscillate between zero and, say, 10.

    I want another layer to obtain this value, but add to himself all the images. I used to do QBasic programs and it's very simple here. Just something like x = x + (value of the key to the plugin)

    But I don't know how to do this in AE.

    Right now I have this:

    x = (thisComp.layer("sound").effect ("sound keys") ("Output 1") * 0.5);

    x;

    What I really want is:

    x = x + (thisComp.layer("sound").effect ("sound keys") ("Output 1") * 0.5);

    x;

    But it does not work.

    Can someone help me please?

    AE does not store the persistent temporal variables. You must accumulate the manually and write your own loops.

    Expression of speed and frequency

    SoundKeys has a built-in accumulate mode, too, so rather than put up with complex expressions, simply use a double instance of the effect and change the values.

    Mylenium

  • Small question about expressions 2 Dimensions

    What I do is probably very simple, but I have never tinkered with simple expressions.

    I have a bulge effect and I want the Center to track an object, so I pickwhip the position of the object to the center of curvature, but he needs to go "up" a few hundred pixels. (say 200) How to SIMPLY change the value y of the Ardennes Center?

    I could move the object anchor point and solve the problem, but I'd rather have this knowledge.

    Something like this is probably the most general way to do it:

    target = thisComp.layer ("target");

    fromComp (target.toComp (target.anchorPoint)) - [0,200]

    Dan

  • I have a question of style GREP

    Hello

    I play with a GREP style in CS4.

    I have a paragraph called style copy of body and a character style called email.

    I want each e-mail address is displayed in the character style email.

    In my GREP style, I've been able to get the symbol @ and everything that follows, but not type in front of her.

    So, for example, in the e-mail address... [email protected] I can only figure out how to get the @ibabstraining to change, but not the bacon before the symbol @. So, if I have a lot of skill to change, they will have something different after the symbol @.

    What is the best way to manage it?

    Thank you

    Babs...

    It might be easier than you think. You already have characters generics after the ' @' (I think), but you can use them before him as well!

    Consider that 'An example for our budding daughter Babs' string, and we want to find all words containing "dd". You would need something like 'any number of characters, then 'dd',' then some characters. Now, if you use any character (the period in GREP syntax), it would return "an example for our budding Babs." A little more than you did, so you should probably not use 'any character '. This is because spaces count as a 'whole' character... Now you pourriez use something like "[a - z]" (everything from a to z), or "\w" (a "word" character: A to Z, a to z, 0 to 9, and all accented characters) but in this case, you probably just want "everything that is not a space. The canonical notation for ' not x' is the following:

    [^x]

    -where "x" can be anything, for example, a single space: [^]. Adding one more after he repeated as much as possible: [^] + will match what that it be composed of nowheres and []] + dd [^] + will match anything non-a-space, 'dd', to others-not-a-spaces.

    But wait! It's better! Check for a single space is something that happens frequently, but you can have a lot of different characters 'space': space nonbreaking, returns (these are also 'white spaces'), tabs, en-space, em-space, thin space, sixth space... the list goes on and. Fortunately, the "Gets Better" part is GREP has a shorthand notation for "any type of white space" - \s.

    For example, [^ \s]+dd[^\s]+ is close - but it is not yet perfect !]

    Audit steps A Space is also a frequent thing and GREP has even a shortcut for this: \S

    Thus, \S+dd\S+ is all that is needed to find words containing "dd", and I bet you can find out how you can translate to find e-mail addresses.

    You can probably guess now that \D, \W, \L and \you will also find.

  • A question of character grep find/replace script

    Hello

    I'm changing the FindChangeList.txt on javascript in indesign cs4 to allow me to automate some grep commands, but we have a problem: in indeisgn if I use the search/replace tool, it works fine, but it doesn't work on the script.

    is what I'm trying to change all instances of + (plus) in a document ± but it seems that the script is read as "nothing more nothing, how to recognize the + as a symbol rather than as a command?

    the line that I use in my code is as follows:

    grep {findWhat: '+'} {changeTo: '±'} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false}

    Thank you

    Try {findWhat: "\ +"}

  • Question in GREP re: character style

    I'm trying to take a block of text and change everything in this text to a certain style of character. What is the correct expression GREP to do that? I know I could just strong of the text in question and apply the style of character, but I need to use it in a script of FindChangeByList, so I need to do it using GREP expressions. Thank you.

    JoJo Jenkins wrote:

    I am trying to build scripts that automate this for me, but maybe there's a much easier way to think about this issue.

    He is a. Select all of the text before you start styling and choose the character Style [no]. Alternatively, you can apply all of your paragraph styles, and then select all of your text and choose clear overrides from the paragraph Style dropdown.

    To get the default character style to be [none], make sure your cursor is selected, and then choose [none]. That applies to all future documents, make this change WITHOUT documentation open.

    Hope that helps,
    Matt

  • Express 3D mapping: How do zoom out?

    Hello world

    I have a very simple question about express mapping in 3D tool. I've attached an example that I found and I would like to know how to zoom...?

    Thanks a lot,

    Kind regards

    User

    Normal 0 21 false false false FR X-NONE X-NONE MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name : « Tableau Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 cm 5.4pt cm 0 5.4pt ; mso-para-marge-haut : 0 cm ; mso-para-marge-droit : 0 cm ; mso-para-marge-bas : 10.0pt ; mso-para-marge-gauche : 0 cm ; ligne-hauteur : 115 % ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-fareast-font-family : « Times New Roman » ; mso-fareast-theme-font : minor-fareast ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ;}

    Hello User_1979,

    Thanks for posting on the forum of National Instruments.

    You have different tools available on the 3D chart. You can zoom in by pressing Shift + left click, then move the mouse.

Maybe you are looking for