[JS CS3] RegExp, object that only contains a single bar backslash (how to escape)


I am trying to escape a backslash in my RegExp object, but I get a syntax error:

myObj = new RegExp ("\");

I tried phyton Style myObj = new RegExp ('-'); but not functioning properly.

Thank you for any suspicion.



First, in your example of text you need to escape your backslash as well:

myText = "this is a-search / replacement."

You can see in these examples:

Alert ('a\rb') print 'a' then 'b' on a new line. Alert ('a\\rb') print 'a\rb '.

Another problem is that you use a regular expression as the subject of replacement (myWhit), but which must be a string. With these two things corrected, it works fine:

main() function
var myText = "this is a-search / replacement."
var myWhat = new RegExp ("\");
var myWhatSearch = new RegExp ("\");
var myWhit = "example";
Alert (myReplaceExample (myText, myWhatSearch, myWhat, myWhit));
Returns true;

As new RegExp ('-') can not be correct can be seen if you start with a literal regular expression, in which you would use a backslash escape sequence:

myText = myText.replace (/ \ /, 'example')

To use-in new construction (RegExp), you must place it in a string, and you must escape the two backslashes if you end up with "\".


Tags: InDesign

Similar Questions

  • I have a partitura with 18 instruments. Problem is that only 16 of the sheed. How can I vertically down the music?

    I have a partitura with 18 instruments. Problem is that only 16 of the sheed. How can I vertically down the music?

    Make a score set with 18 all instruments. Then use the scale parameter set score to all fit on a single page.

  • Hello, I recently bought a new laptop and wanted to download my Adobe photoshop CS3 and realized that I have lost my program. How can I get my account number back so I can download the program?

    Hello, I recently bought a new laptop and wanted to download my Adobe photoshop CS3 and realized that I have lost my program. How can I get my account number back so I can download the program?


    I can give you the link to download CS3, but you need to find the serial key in your email or somewhere you kept.

    Link to download CS3: products CS3 download



  • Try to find all THE objects that point to a column...

    Oracle Database 11 g Enterprise Edition Release - 64 bit Production
    PL/SQL Release - Production
    CORE Production
    AMT for Solaris: - Production Version
    NLSRTL Version - Production

    I have several patterns, all that have tons of objects that point to a column in a table.
    I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.

    There is a view that I can watch that will show me all the objects that relate to a single column?

    my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.

    I can't forget all the objects. Is there any one place to find it?

    Thank you.

    Use the mode - DBA_DEPENDENCIES

    select * from dba_dependencies
    where type= 'TABLE'
    and name = '';

    Another gross way...

    select * from all_source
    where lower(text) like lower('%%')
    group by owner,name,type;

    But, this will not search in the views & MView queries.

    Vanessa B.

    Published by: Vanessa B on October 15, 2012 23:09

  • Smart Guides: align several objects that contain inline features

    I find it extremely difficult in some cases to adjust and align several objects which

    contain a related inline 1px.

    I have extremely to zoom to align objects to fit the exact position in order

    to book several objects that contain a built-in inline 1px line.

    Display > bearings commented

    is Active and the objects snap to the adjoining objects I want to be aligned, but still, the

    objects containing a 1px inline line must be adjusted by zooming (in some

    case of 4000%) in order to adapt the layout with precision.

    In some very specific cases I don't even need to re-order elements in his z axis

    ()Fix > put to the or Arrange > Send to back on the same layer) to

    lines visible If I use one color background which may overlap the object below.

    (Even if I use features inline only)

    Especially for creating lists and similar provisions of tables, this procedure by zooming in and

    several times can be really much time even using commented on.

    I put any race inline. However, blink of an eye's blink of an eye, it must fit exactly. Even in zoom 4000% .

    I don't really want to check and re - check if the objects are really good and precisely aligned. I had this

    question by creating a large website for a client. They don't pay for extra time to be invested

    to make the layout work and items to fit perfectly and I was wrong to give them arguments why

    It took so long to do the final page layouts (ticket and time tracking as the developers might be )

    very well known to.).

    Yes, customers wants to perfect, and if an Update or a fixed layout comes along, I start all over again do

    It works perfectly on the retina and non-retine poster on many machines for the client and management.

    PS: As developers know, a single update can have influence on many other web pages if you

    create designs, layouts and active for a frontend/backend development team.

  • How to remove the objects that appear only in outline view?

    I've hidden objects in a file that only appear in schema view. It wont let me select them and is to make the file larger then it must be. Any ideas to get rid of these unwanted items? Thank you!

    You can check if there is a clipping mask in this layer. Open the layer by clicking on the triangle.

  • How can I add a game action on an object that contains the first click and read reversed to this object even a second click action?

    How can I add a game action on an object that contains the first click and read reversed to this object even a second click action?

    First create a symbol of the object.

    Then add the code in the event click on this symbol as below:

    Insert the code for the mouse, click here

    var bReverse = (sym.getVariable ("reverseDir")! = undefined)? (sym.getVariable ("reverseDir")): true;

    sym.setVariable ("reverseDir", bReverse)

    {if (bReverse)}

    sym.playReverse ();


    else {}

    SYM. Play();




  • We may limit research into the method of bellow that only 3 fields are updated on 10 of the VO?

    Mr President

    If I have an entity that contains many attributes.

    If I create an OT and VO of this entity and shows only 3 attributes.

    Now I want that when I update this display object having only 3 attributes with the method below

    So these 3 attributes are updated in the area also.

        public void newVoucher(ActionEvent actionEvent) {
                // Add event code here...
                BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();        
                DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("CPVVoucher1View1Iterator");        
                RowSetIterator rsi = dciter.getRowSetIterator();        
                Row lastRow = rsi.last();        
                int lastRowIndex = rsi.getRangeIndexOf(lastRow);        
                Row newRow = rsi.createRow();        
                rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);         

    Can change us the method above to get the desired results.


    Then change the type attributes of DBSequence to oracle.jbo.domain.Number

    After that, write the following method in the ViewObjectImpl class and export them to the customer of VO interface:

    public oracle.jbo.domain.Number getFirstSeqNumber(String seq_name){
          SequenceImpl seq=new SequenceImpl(seq_name, getDBTransaction());
          return seq.getSequenceNumber());

    Add this method in the pageDef.

    I hope you know how to call it from your ActionLitener (how to seq_name param etc...)

    Now lets go to the ActionListener code, at the end, add the following lines:

    oracle.jbo.domain.Number seqValue = call_getFirstSeqNumber_somehow(...); //you know...
    newRow..setAttribute("VoucherId", seqValue); // similar for another one

    You have a point?

    And don't tell me that you still want to use the types of DBSequence, because I already answered this question... has soon

  • [VirtualMachineSnapshotTree] contains a single object in table

    Hello everyone,

    I collect the instant news of VM, my VM has 3 snapshots, but I don't have a single object VirtualMachineSnapshotTree in VirtualMachineSnapshotTree array, it gives me the snapshot root.

    When I call getChildSnapshotList() I get a table, child of the root object, again

    When I call the method again I'm last snapshot 3 (once again there is only a single object in the table)

    This is how it works?

    The childSnapshotList of a VirtualMachineSnapshotTree proporty will contain the snapshot root object that is her child as these pictures of children are inturn recursive in nature. So, you get the entire list of all snapshots in a single object of VirtualMachineSnapshotTree. You will need to retrieve the property childSnapshotList of each child (VirtualMachineSnapshotTree) and check if it has any other child. If so, then go down further. If this isn't the case, then this is the last snapshot.

    I hope it clarifies!

    Let me know if you have any doubts

  • How to remove or modify a captured text layer that contains a single character in Cp 5?

    My captured text layer contains a single character "7". This makes it immediately when I publish the movie, but I don't get any options when I try to change the layer by clicking right on it.

    Can anyone help because it is very annoying...


    Welcome to the forum.

    Since you mention "capture", I assume that you point to an object of typing? You cannot change this immediately. Depending on what you want to achieve, could provide two workaround solutions:

    1. If you only want to display something hits (demo - but another text that your character), replace the strike by a text Animation object (context menu), you will be able to change.
    2. If you want the user to type text, remove the object of typing and replace it with a text entry area.


  • I get a JavaScript Application error: "setTimeout" called on an object that does not implement the interface Window for Firefox.

    I get a pop up box with the message: Application JavaScript error: "setTimeout" called on an object that does not implement the interface Window for Firefox.

    But it seems to appear when I go to Amazon.com. Then he opens with this message and the OK option? But as fast as I can click OK, another box appears. After all a half dozen, she disappears - until what I move to another part of Amazon! I uninstalled - reinstalled and then - Firefox and BA. I do not understand this!

    (And of course, there is always the possibility that it is not only attacking me on Amazon... There may be a lot of other sites that also trigger, and I just haven't been there yet.)


    Try Firefox Safe mode to 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:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode 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."

    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.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Delay of the dialog 'Copy the file' when you drag a file to a folder that already contains.

    Delay of the dialog 'Copy the file' when you drag a file to a folder that already contains.  The dialog box only appears when that I disconnect.  In fact this problem can seriously mislead the user. The file has been copied to or not? This is a serious shortcoming of the operating system.
    A similarly delayed dialog box is to join files on a send to the recipient of the message.

    What is the cause of the delay? Dialog boxes are not under other windows - they break on screen as I log out.

    When I drag AGAIN the same file in the same folder, then I get a message that "the action cannot be completed because the file is open in another program.  (No doubt the program who was trying to copy in the first attempt and waits for a response to the dialog box may not show me!)

    Hardware: Computer laptop Asus M70.  VISTA Ultimate with the latest patches.

    Lorien, thanks for your response.
    A lot of time and effort was exercised in an attempt to find out WHY. I wanted to not just fix the symptoms. It concerned me greatly as a basic function of the operating system does not work. He was not fit for purpose. In the end I found that a third-party application compromised of WINDOWS VISTA 32-bit operating system. If an operating system can not reliably inform the user that an operation is successful or not, it is worthless. In the case above, I didn't move the files was a success (no response required) or the delayed response until I signed.

    In addition to the original problem, there was the following problem: http://social.answers.microsoft.com/Forums/en-US/vistanetworking/thread/24068518-31e0-4b23-823b-d54882792301 where "send to..." 'Recipient' disable the context menu in Explorer for JPG does not or not broken.

    Finally, I figured out the following error had something to do with my problems:

    The server {AB8902B4-09CA-4BB6-B78D-A8F59079A8D5} is not registered with DCOM within the required time.

     0 x 80000000000000



    Arriving in my solution, I was inspired by the following articles http://blogs.technet.com/markrussinovich/archive/2006/08/31/453100.aspx     http://blogs.technet.com/markrussinovich/archive/2006/11/27/532465.aspx
    So I downloaded the MS debug tools and confirmed my suspicion of dllhost.dll using REGEDIT to set debugging on that.
    To cut a long story short, it's DivX 7.2 which caused me grief.  In particular, the file DivXDecH264.ax 'has an access violation - code C0000005 (first chance).  It has been autonomous in DivX Plus DirectShow Filters.     Thus, when it has been deleted (starting other Articles to original install DivX) through Control Panel of configuration/programs and features my system worked perfectly well.

    I know SFA on the architecture of Windows but why was this DivX file loading and cause an access violation whenever I used the windows Explorer?  How an operating system may fail in a basic function of by a third party issue?  There are some newspaper where this access violation was recorded?  It was only possible to identify it in debugging?

    What you fella?

  • How can I ensure that only known AP to connect to WLC

    I have a Cisco 2112 WLC with of 1131 LWAP

    How can I ensure that only known AP to connect to the WLC?

    Thanks in advance


    Hi Richard,

    You can use allow the PA against AAA to make sure that all AP registering on your WLC are allowed the AP network.

    By activating this feature, only these AP whose mac addresses are present in the list of permission, will be able to register at the WLC.

    This list of authorization may be present externally on a server or a local list on the WLC himself. The link below explains in detail:


    Another feature, which has already been mentioned in this thread, is the unreliable detection. With this feature, the WLC will be able to detect any access point that is not a part of his band RF and contain them.

    Please see the document below for more information in this regard:


    Kind regards


  • Permission error - impossible to enumerate the objects in the container. Access is denied.

    I'm changing my library to my current user permissions and although some of my files are fine, a bunch of them throw the error message: "Permission error - impossible to enumerate the objects in the container. Access is denied. "When I try to change them. I can go in files and folders manually and edit them correctly, but it's a pain in the buttocks seen there are literally the * hundreds * of files that it is coming on.

    Any ideas on how to fix?

    I'm having the same problem, but try to include a file folder on a hard drive support separate than where I had installed windows 8. There are literally thousands of files. To your question:

    1 Yes

    2. Yes, and any other folder on the drive.

    3. to access the folder, I need permission!

    Thanks for your help, it is very frustrating.

    Here's how I solved my problem-
    1. on the root folder, right click, select Properties, select Security tab.
    2. click on advanced
    3. the window that opens should indicate to the current owner. Click on 'change '. Him "select user or group" pop up box appears.
    4. in the text box, type your user name (you should be an admin) and click the button "check names". Your name is replaced by the name of 'official' system (i.e., preceded by the name of the computer and the backslash).
    5. click on OK
    6. the box disappears, sending you back to the advanced security settings window.
    7. a new box appears under ownership, with the text 'Replace the owner of subcontainers and objects' check this box.
    8. I also selected the checkbox "Replace all entries authorization child object with entries permissions inheritable from this object", but I think that I had to run this twice - once with this checked and one without.
    9. make sure that 'everyone' appears in the Permission entries, if not, click Add. The same box that is displayed in step 4 appears again. Type everyone, click on "Check names", then "OK".
    9 valve apply

    I see also folder property can be changed to "everyone" - I have not tried to change all owners of my file to this, but doing so may eliminate the problem altogether if the drive is moved to another computer.

    I hope this helps someone, this problem and the lack of documentation has been quite aggravating.

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),

    Now I want that when I click on a button (create an insert) to create the first line with the default values below


    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below


    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.


    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
            if(operation != DML_DELETE)
            if (operation == DML_INSERT )
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
            if(operation == DML_UPDATE)
                                 System.out.println("I am in Update with vid= " + getVid());
            super.doDML(operation, e);
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                    PreparedStatement stat = null;
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                    catch (Exception e)
                      catch (Exception e)
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                    PreparedStatement stat = null;
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
                    catch (Exception e)
                      catch (Exception e)

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.

    Thanks for all the cooperation to obtain the desired results.


Maybe you are looking for

  • How to stop the background music?

    Installed firefox. During navigation it is background music nonstop. SOP how this music

  • Use 1 8 GB or 2 cards memory 4 GB in MB Pro 17"

    Hi all - I have a 2011 end Pro 17 "MacBook, which initially provided with 2 cards of memory 2 GB of quantity. Wishing to move to 8 GB, I ordered 2 cards of 4 GB of quantity, but the company that I ordered me delivered a single 8GB card. My understand

  • VI to search for files in the c drive

    Hello I do a file search program in the C drive of my system. Will there be pallets of fuction to find the files in the C drive?

  • HP probook6570b: safe mode

    I recently had a meeting with microsoft and went into safe mode, but now when I boot it opens in safe mode and I don't know how to get back to normal, I powereddown and removed the battery and tried agin selecting normalmode bit still opens in safe m

  • How to fix negative numbers in images u16

    Hello I have a 2d chart which is u16 (0-65 K) and trying to avoid a 'dark' of him. The problem is that it sometimes gives way to negative numbers and he made a wrap-around and shows the values as 65 K. Is there a function truncate or something to mak