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

Tags: InDesign

Similar Questions

  • Why the Info screen called my back camera air ipad 2

    Why the Info screen name my back camera air ipad 2?

    You have two cameras - the front and rear camera - this information window that you have pursued photography

    LN

  • Why the extreme to express signal is broken

    I have an Airport Extreme b, g, n, ac cable (ethernet) to my router Verizon Wireless. The router has been updated by Verizon end of last year and works very well. From there, I have an iMac with 802.11 b/g/n/ac cable into the extreme as well. I have a Windows pc in another room wired with ethernet to the extreme as well.

    At the back of my house, I have an Airport Express b/g/n I used to extend my Airport Extreme signal for the past 18 months without any problem. I had problems of signal with the Express and it seems to re-defining the Express worked, but the image of my signal has changed my Airport utility on my iMac. Previously, the signal was solid from the far down to the Express, and the image on my iPhone 6, at the launch of my Airport utility has been broken from the extreme to the Express.

    Now the images are reversed where my iPhone has the solid signal, and my iMac broke the line signal. Someone knows why? It works, but the lines threw me.

    A dotted line between the terminal of the AirPort Express and AirPort Extreme indicates that the Express connects to the extreme by using a wireless connection.

    What do you want?... or... the Express linking to the extreme by using a wired Ethernet cable connection?  If If this is the case, there should be a continuous line between the Express and Extreme.

    What device do you have used when you reset and reconfigured the Express... the iMac or the iPhone?

    Did you completely turn off the iPhone, has waited a minute or two and then he fed up and checked the AirPort utility again this way?

  • I'm having a problem with the FireFox browser. I have attached two files that describe the problem. I have marked their A & B. A is the way it should lo

    I'm having a problem with the FireFox browser. I have attached two files that describe the problem. I have marked their A & B. A is how it should look like and B what happens once I have, I opened several tabs. I can get it back to normal if I click VIEW, click Customize. When the window customize appears that Firefox returns to its normal state. I have to click on the done button and go back to what I did. I tried to reset FireFox back to the default settings, but that has not fixed the problem.
    It started happening a month. Is there a way I can fix this? Thanks for your help. I don't know how to fix my 2 attachments that shows the problem I'm having.
    [email address removed to protect your privacy and security]

    Try disabling hardware acceleration in Firefox.

  • Obstacle of the expression: run the expression, if two variables are met

    Hello

    I have an animation with a large NUMBER of text objects. And there are 3 translations for each text object.

    Now, I put all of this, so that I have through a controller box/rocking in the Comp hand can control the language of animation throughout the project. So instead of click 1 billion power layers, whenever I have to make a language, it's a one-click solution. And it works like a charm. In this way I accidentally do exclude a layer not when rendered.

    It goes like this. The opacity of a specific layer is driven by an expression. It's either

    (comp("MAIN_COMP").layer ("/ / TOGGLE the LANGUAGE") .effect ("danish show") ("checkbox") == 1? value: 0)

    Gold

    (comp("MAIN_COMP").layer ("/ / TOGGLE the LANGUAGE") .effect ('show norwegian') ("checkbox") == 1? value: 0)

    or

    (comp("MAIN_COMP").layer ("/ / TOGGLE the LANGUAGE") .effect ("show finish") ("checkbox") == 1? value: 0)

    Sometimes I text objects that are identical, Norwegian and Danish are very similar.

    To avoid duplication of the text layers (in order to organize and keep my sanity), how could I implement the expression of the opacity to meet these requirements:

    If the box EITHER Danish OR Norwegian is activated, display the layer. If none of them are controlled, do not show.

    Is there a clever way to combine the two expressions for layers of text in question?

    This should work:

    controlLayer = comp("MAIN COMP").layer("// TOGGLE LANGUAGE");
    (controlLayer.effect("Show Danish")("Checkbox") == 1 || controlLayer.effect("Show Norwegian")("Checkbox") == 1) ? value : 0;
    

    (the | is logical OR).

    Xavier.

  • Cannot delete the incorrect recipient "found in Mail" (and why Apple recipients to merge two incorrectly in the first place)

    I don't know how it happened, but I got a new doctor yesterday morning (it was the first time email address), they replied, then I replied again. Everything was fine.  Then, I sent my father later in the afternoon on a guitar. He said that he never had the email about the guitar but then later the new doctor responded saying I sent this message from guitar to them by mistake. I looked in my "Sent" to the message folder and it was sent to 'Rick Smith', which is the correct name for my father, but when I developed the details the actual address itself was my address of doctors!

    I checked my Contact cards and card "Rick Smith" my father had no address of the doctor as an email, so it's been very well. Also, I had not all the contact cards using this email to all address. In Apple mail, I went to the "previous winners' window and has removed the false contact and thought it would solve the problem. Unfortunately when I type in "Rick" when sending a new email, the first suggestion in the drop-down list gives me the real email "[email protected]" and the second suggestion is "Rick Smith - doctorxxxx@gmail ' and it is said that address"was in the mail." I also tried to delete the message and he always appears as an option in the drop-down list. In addition, I have a contact card for my dad with the correct address, so I don't know why he can't just use that one correct.

    I'm used to typing «Ri...» "and then selecting"Rick Smith"when I start a new email for him, but I don't want my doctor obviously message.

    First, how can I get rid of this fake recipient...

    Secondly, how and why Apple Mail merging those two into one without my knowledge? Is this a glitch El Capitan? (I just changed recently)

    I admit that your message is too long for me to read in its entirety.

    But I think you have some additional e-mail recipient information you do not wish to keep.

    In the Mail application, use the menu to go to the window > previous winners and clean you want to delete from there.

  • Why the simple task of transferring photos that should be done drag and drop such a hassle from my phone to the computer

    Why the simple task of transferring photos that should be done drag and drop from my phone to computer such a chore... It is a success or a failure... open iphotos sometimes sometimes it doesn't.

    < published by host >

    Drag and drop is not supported from iPhone to computer.

    Sync with iTunes or iCloud > keep your photos safely stored and updated on all your devices - Apple Support

  • Why Apple can't do two systems? First of all, we are protected, and the other is free just like android, but in the style of the iOS and Apple needs a request so we can manage and see new products from an application and do not go on this site!

    Why Apple can't do two systems? First of all, we are protected, and the other is free just like android, but in the style of the iOS and Apple needs a request so we can manage and see new products from an application and do not go on this site!

    and I don't know that if Apple make a system more freely, there no need for any device on Earth but iPhone.

    http://www.Apple.com/feedback/

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • How can I disable two back on the HP Officejet 6500

    How can I disable two back on the HP Officejet 6500?

    Hi ekiongozi,

    You need to access print options, and then select None to print on both sides drop-down box.

  • my file were gone in all menu programs start but it still usable in the c drive... Why? and how to get back to normal

    my file were gone in all menu programs start but it still usable in the c drive... Why? and how to get back to normal?...

    its empty in all programs but available to the c drive... can someone help me? /

    The elements of the start menu are a few shortcuts to the files on the C: drive you mention.  Done that caused all the elements of Start Menu to disappear?  This is sometimes caused by viruses that hide items on the computer, make sure that the computer is virus free, run a Malwarebytes scan on the machine.  If the machine is free virus that then I suggest that you do a system restore to a point just before the problem started.

    John

  • Why the results research print in two color blue and black fonts?

    Original title: research

    Why the results research print in two color blue and black fonts?

    In general, the files and folders shown in the Explorer with the blue text are files and compressed files.  Black text indicates a normal file or a folder.

    writing in the new message: * e-mail address is removed from the privacy... *

    Why the results research print in two color blue and black fonts?

  • Why the interconnections of fabric can be connected to the two MDS?

    Hi all

    1. why the white paper below says that if FI is connected to two MDS, then it will create a single point of failure?

    http://www.Cisco.com/c/en/us/products/collateral/storage-networking/MDS-9500-series-multilayer-directors/white_paper_c11_586100.html

    This image below is used to describe the scenario for question 2 to 4.

    2 and why the SAN design best practices to create SAN A and SAN B? Where when the switch 1 has failed, then it will use the b in SAN. And in this case, user can configure to connect to the storage using SAN B first, instead of using SAN first? And by default, the behavior of the SAN like that, what I mean is that she will check SAN failed, then it will use SAN B?

    3. and why there is no connection between the left more server and switch 2? They can not who design when switch 1 has failed, then it will use the other link first to switch 2, by linking the left more server for 2? Then when the core SAN switch one down, he uses the SAN B connection.

    4. can you the server to different SAN multipath? In this case, SAN A and B.

    Thank you

    Osbin

    Hi Osbin,

    Why the white paper below says that if FI is connected to two MDS, then it will create a single point of failure?

    Protocol FC build tissue, using the FSPF (such as OSPF) of the Protocol in order to MDS, FI (switch mode) Nexus 5 k, 7 k (storage VDC) form a single fabric using the links intercommutation.

    If a problem is occur in tissue alone device's problem (zoning, FSPF, EENT)

    If you connect fabric and fabric B (connect a FI for switch 1 and switch 2) in other words, this is no fabric A and B - it became a unique fabric (fabric single = single point of failure). That's why we use two FI, connected to two independent fabrics (isolation and redundancy)

    Technically, you can avoid this problem by using VSANS, but if some problem in a NX - OS or SAN - OS occure you may lose the two fabrics in a single failure (the worst of the world SAN)

    2 and why the SAN design best practices to create SAN A and SAN B? Where when the switch 1 has failed, then it will use the b in SAN. And in this case, user can configure to connect to the storage using SAN B first, instead of using SAN first? And by default, the behavior of the SAN like that, what I mean is that she will check SAN failed, then it will use SAN B?

    Point main initiator is in the answer above, can use both at the same time (multipath) fabrics with special drivers.

    It is configurable by the user to use any fabric (A and B - is just for engineers) first.

    It depends on the OS and drivers.

    3. and why there is no connection between the left more server and switch 2?

    I believe that this picture is schematic diagram and imagine if you have enough ports in the switch 1

    They can not who design when switch 1 has failed, then it will use the other link first to switch 2, by linking the left more server for 2?

    Remember the idea of FC fabric. If you spend 1 it will affect every single switch fabric, and it is much faster to use stable fabric B instead of A fabric converging.

    Then when the core SAN switch one down, he uses the SAN B connection.

    4. can you the server to different SAN multipath? In this case, SAN A and B.

    Yes

    Best regards

    Alex

  • I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    Abdel,

    What font you vectorize?

    Or is happening with all your fonts?

  • custom auth: Cancel button dest page should refer back to the menu, not connect

    AP-EXperts...

    I have a custom auth routine, which seems to work very well, produced a fine menu tree after authentication. So my link in the menu tree goes to the next page of the app very well (although when it is fully functional, it could also go to pages in other applications in other areas of work).

    The problem I have is that the menu links to a page of report/form and report form / seems to work fine, except for the Cancel button. And really, the button is probably done what it should, but I have a redirect to the page 1 which is the menu page, but it ends at 101 which is the login page.

    What is happening out there? How can I get the real menu back in place, as expected? There must be a setting that I can put in a cancellation process after to realize this, or some other well-disguised setting. I have no concern that it looks exactly as it did on clicking on the link that went to the / report form.

    I hope that you guys get tired of the questions, I'm learning all the right directions.

    There is a session from connection to the menu ID, but there is no postponement of the session ID in the menu option, should it do and maybe you can tell how to include in my link behind the menu? somehow to incorporate the menu session ID in the URL behind my menu option?

    That's the problem. You must specify the id second apex current in the links, otherwise it will create new session.

    I don't know how you have created the menu. However you can get the current session by using the variable binding APP_SESSION .

    Kind regards
    Hari

Maybe you are looking for

  • Finder displays wrong size?

    According to Finder, the size of my file user (tamas) is 78 GB. If I add the sizes of files and subfolders, it occupies about 50 GB. According to my estimates, about 50 GB should be correct. My basket is empty. What can be the reason for the differen

  • What is the shutter speed of the camera of 1722?

    Does anyone know what is the shutter speed of the camera of 1722?  I only see the framerate in the documentation, but not the actual shutter speed range.  I know that this will depend on the lighting. I would like to know if this camera is designed t

  • Download game service pack.

    How can I reinstall a game pack (solitaire, solitaire spider, free cell, etc.) if they ask me to use a disc I own is no longer?

  • Recistering Windows 7

    I bought a laptop with a registered version of Windows 7 in 2010 while I was living and working in Thailand. I stepped back to the United States in January 2016. I tried updating to Windows 10, but had problems with my video card and an HDMI port. I

  • I want to use hotmail WITHOUT Messenger or pop-up message that appears.

    After you have displayed in several areas of the Windows Live Solution Center and sent to different places and return to where I started, I was done in this direction, and I really hope someone can help... I have a new computer with Windows 7.  Whene