[JS] [regex] Question autour forming a regex

Hello.

I'm trying to use a regular expression to filter the non-url characters and replace them with % 20.  I have this line:

myChangedError = myErrorText.replace(/[-\w\.@\\]/g,"%20"); but it does not work.

I'm new on using Regex and want to know more, but this seems pretty basic, and I should be in this!

Can anyone help?

Thank you very much

Roy

A mistake, what is that supposed to do regular expression? Maybe you wanted to use /[^\w\.@\\]/ instead of /[-\w\.@\\]/?

(Your question would be also much clearer if you were specific - what is an example of a character who is treated wrongly. What are you waiting for and what happened?)

In General, if you are worried about security, you should explicitly include the characters, not blacklist some that seem dangerous to you. Being generally more dangerous than you know.

You can also find more useful using encodeURIComponent (myErrorText) or maybe encodeURI (myErrorText), according to what it is you want to do. [What do you want?]

Tags: InDesign

Similar Questions

  • Question of forms mouth leak

    I tried different things to fix the forms of mouth leak. I have passed on some forms of mouth, added a circle face shape larger head, extended her shadow behind and moved autour JAWS - but I still get forms of mouth weird leak. This example uses a pre-recorded audio who speaks quite slowly. The blue circle is my fake head I thought could help. There is a layer of black shadow forms the mouth. The mouth shapes are under the head. Here is a video to show the problem.

    boney.jpg

    VIDEO:

    https://assets.Adobe.com/link/35701ee0-b3aa-48bc-72da-9452f14e11b2?section=activity_public

    There might be a viseme which is not be mapped. To confirm, select the puppet in the project Panel (or open the puppet in the puppet Control Panel and make sure that no layer is selected), and then expand the behavior of lip sync in the properties panel to confirm that each of the layers viseme is actually match up with the work layer expected. If it's not (for example, one or more layers of viseme is not assigned), could explain this problem disappears from the mouth.

  • QUESTION contact form

    Hello

    I have a PROBLEM contact form with all my sites.

    You can help me somehow? Thank you!

    When I send message with contact form I recive this:

    This message was created automatically by mail delivery software.

    A message you sent could not be delivered to one or more of its

    beneficiaries. This is a permanent error. The following address(es) failed:

    [email protected]

    Error SMTP from remote mail server after the end of the data:

    host smtp2.hosting90.cz [a 2, 03: b780:1:0:216:3eff:fe00:24 c]:

    550 - this message < [email protected] > was classified as

    SPAM 550.

    -It is a copy of the message, including all headers. ------

    Return-path: [email protected] >

    Received: from mainftp60038 to h90hr - w2.hosting90.cz with local (Exim 4.72)

    (envelope-from <[email protected]>)

    ID 1XReVJ-0002Mw-89

            for [email protected] ; Fri, 10 Sep 2014 11:47:57 + 0200

    Date: Wed, 10 Sep 2014 11:47:57 + 0200

    Message-Id: < [email protected] >

    To: [email protected]

    Subject: Sending a Contact form

    De : [email protected]

    Reply-To: [email protected]

    X-Mailer: Adobe Muse CC 2014.1.6 with PHP

    Content-type: text/html; charset = utf-8

    X-MainFTP-name: mainftp60038

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN".

    " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.DTD ' > < HTML .

    " xmlns =" http://www.w3.org/1999/xhtml "> < head > < meta ".

    http-equiv = "Content-Type".

    content = text/html"; charset = UTF-8 "/ > < title > Contact form "

    Presentation < / title > < / head > < body style = "background-color: #ffffff;"

    Color: #000000; make-style: normal; do-variant: normal; Police-weight:

    normal; do-size: 12px; line-height: 18px; do-family: helvetica,.

    Arial, verdana, without serif. "> < h2 style =" background-color: "

    #eeeeee; ' > new submission of the form < / h2 > < table cellspacing = "0".

    CellPadding = "0" width = "100%" style = "background-color:"

    #ffffff; "> < tr > < td valign ="top"style =" background-color: "

    #ffffff; "> < b > Ime: < /b > < table > < td >Maja < table > < /tr > < tr > < td valign ="top"

    style = "background-color:"

    #ffffff; "> < b > E-mail: < /b > < table > <td >[email protected]< table > </tr > < tr > < td

    VAlign = "top" style = "background-color:"

    #ffffff; "> < b > Poruka: < /b > < table > <td > poruka < table > < /tr > < / table > <br / > < br / > < div

    style = "background-color: #eeeeee;" do-size: 10px; line-height:

    11px; "> form sent from the Web site: www.ciscenje-pcelica.hr< / div > <div

    style = "background-color: #eeeeee;" do-size: 10px; line-height:

    11px; ' > visitor IP address: 89.164.37.254 < / div > < body / > < /html >

    What this means, it is the host that mail was sent to a marked area sent as Spam. The beneficiary should contact their provider to be removed from the spam list. This isn't a question of Muse, so you should contact your Web host to have this problem.

  • Stacked question Web Forms [32 bit] Version 10.1.2.3.0 (Production)

    Hi friends, I don't know if my explanation will suffice for this easy problem that is causing me so much grief.

    I have a form with a table of content ROOT_CNV, a tab canvas TAB_CNV with two tabbed pages and a PILE of canvas Stack_CNV.

    All of these paintings are on a ROOT_WINDOW window.

    The canvas of the tab (TAB_CNV) is tabular in nature.

    There is a menu button that you can press on what goes into a single record in the canvas tab and place this file in the stack_cnv. All fields of the stack_cnv are mirror_image the document canvas tab which items are synchronized.

    NOW THE PROBLEM. When you press the button and you are in the Web of the battery and you are trying to interview any folder, the form will take back you to the canvas tab and fields freezes, there are many forms here with this feature that woks, but I can't understand while it acts lke this.

    I did the battery smaller canvas, but the question is until the same thing, I think it has to do with the stacking order and I already reorganize this knowledge Available, any suggestions will be appreciated.

    Thank you.

    Canvas tab
    Page 1 Page 2
    *===== ========*
    record proj under status
    * 1 ACTIVE 1
    * 2 1 PENDING *.
    * 3 C 1 ACTIVE *.
    * 4 C 2 ACTIVE *.
    1 Menu folder icon, click on the canvas of the battery is displayed (Stack_CNV) on a form Format
    * STACK_CNV * Page1 Page2 *.
    *===== =======*
    PROG: Sub: 1
    Status: ACTIVE
    The tab pages always appears on the canvas of battery that is correct, however, when you try to query the canvas of the battery, it takes back you to the canvas tab and everything freezes. The two paintings are on the table of content Root_cnv.

    Hi Ade2

    PLS, create a trigger KEY-ENTQRY at the level of the form, add the following code:

    GO_BLOCK('dept');
    CLEAR_BLOCK(no_commit);
    ENTER_QUERY;
    

    I hope this helps...

    Kind regards

    Amatu Allah

  • Box triggered more Questions on forms

    I use Oracle Apex Standard Edition 4.1

    I have a database with about 60 columns table. I built a form that asks a few questions and the information is stored in the database table. However, since there are so many columns, I want to hide some of the questions if they are not necessary.

    For example, one of the questions is as

    'Should it approve' (check box)

    If someone checks the box, then another question appears which says:

    "Enter information for approval" (text field)

    But the second question should appear only when the box is filled.

    I know that it is quite possible, but I don't know if I'm suppose to use the pl/sql or trigger. Any help would be greatly appreciated.

    : )

    Danny

    Hey Danny,

    Take a look at dynamic actions. Set this fire if your page element box gets changed. Show/hide action should do what you want.

    Concerning
    Patrick

  • Question of form. It seems simple, but it is...?

    I have this form:

    4-2-2011 23-31-32.jpg

    The picture says it all, how can I move the text surrounded by a circle up to align with the top of the comments box and use several lines of text, instead of down as it is currently?

    The form.php code is attached. http://www.millcon.nl/harm/form.php

    The whole page is here: http://ppbm5.com/submission.html

    Prejudice,

    I'm sorry, I didn't know that the form was more or less created by a clever program. The problem with similar programs is that they respond to different scenarios and as such, the code tends to become bloated.

    With this in mind, do not change the structure of the script that has been created and forget what I said earlier.

    In response to your original question, simply add the following style rule to the function of style at the base of form.php rule

    .instruction {}
    Width: 300px;
    float: left;
    padding-left: 10px;
    }

    You will also need to add float: left for the following input fields

    .text_box, .text_area, .text_select {}
    Width: 300px;
      float: left;
    }

    This will give you the required effect.

    Ben

    PS I started with user Heath (HUG) group in the 1970s, to program in the port of Benton Basic, assembler and Pascal. What follows is my pride and joy at the same time that Apple was simply a toy.

    I always locked him in a cupboard.

  • A few questions of FORMS...

    Hi, please help with the following questions

    1. what would be the minimum software configuration to run on a single server report forms and 11 g. IE running of level 2 and 3 on the same physical server.
    2. What is the minimum hardware requirements to run the software on a single server configuration.

    Kind regards
    Thabo

    2. What is the minimum hardware requirements to run the software on a single server configuration.

    I did some tests on a Linux virtual machine, which I assign 1400Mb RAM.

    The test refers to forms and reports only, without connections and components of starting one. Here is the result:

    RAM : 1400 Mb
    
              Free Cache Swap
              ==== ===== ====
    
    OS only     :  960   316    0
    
    OPMN     :  695   435    0
    
    Forms     :   30   490    0
    
    Reports     :   31    96  144
    

    That is, to run the forms and reports only, you need no less than 2 GB of RAM, then you must add a minimum of 1-1, 5 GB for the database.

    Conclusion: with less than 4 GB, you would have problems...

  • Thunderbird keeps questioning a former e-mail account that has been deleted and is not listed in the tools/options account

    I even deleted and reloaded firefox, Thunderbird , but it continues to try to recover a deleted account emails. Where it becomes the info to try to access the account? Tools/choice of account does not contain the account more.

    The title of the question and first sentence edited by moderator. This question is about Thunderbird, not Firefox. AW

    Something was quite wrong. Settings that use Thunderbird cannot come from his profile, but if the account has been for settings and yet the account is always logged, then the settings page has become out of step with the real state of the profile. Note that uninstalling and then reinstalling the program Thunderbird are usually ineffective because the settings are kept separately in the profile folder.

    I would go to tools | Options | Advanced > Configuration Editor and search for it references to the unwanted account and see if they can be removed by here. If this fails, I close Thunderbird and browse the js files in a text editor. If you do this, be sure to make backups, because if the files are preferably incorrectly formatted, Thunderbird will not start.

  • Replacing the dv6-7014nr autour former hard drive - it'll work?

    Here's my dilemma:

    My new dv6 7014nr, customized by the dealer with performance 12 GB of RAM and a disc of hybrid SSD 750Go (best decision I did!), has a bad keyboard: the 'C' button keeps jumping off the power. They offered to replace the laptop.

    Problem is, I have sensitive data on my hard drive and I want him to stay here. So, here's the plan:

    I'm very comfortable in pulling the hard drive and leave it here. The dealer will build me a dv6-7014nr, 12 GB RAM, SAME performance all the same and ship it to me without a hard drive. I've happily jump in my 'old' hard drive and rock on.

    Which will work? Or the new material causes non repairable conflicts?

    Thank you!

    Welcome! And thanks for posting your question.

    If the machine is, like you say, identical, there should not be any conflicts. In theory, any SATA hard drive should power be removed to any machine and placed in another computer SATA or external drive Bay. The only exception would be if your drive was encrypted. What suite of Windows is installed on the hard drive? (7 or 8? Home Premium or professional?)

  • Question of forms 12 c IE add-on

    I try to navigate to the Oracle Forms Servlet on my server that my installation of 12 Oracle Forms. When you use the http://servername/formes/frmservletlink, I get a message of IE saying "failed an add-on for this Web site." I guess that it refers to the java add-on, but I'm not sure.

    So, I tried all my security settings of the browsers lowering so that the add-on would go. "" After changing the settings, I have not received the "an add-on for this Web site could not run" message but rather I received the following security warning:

    IE Message.JPG

    I clicked on install , but then the browser just stayed on a blank white screen and nothing happened.

    I know that this URL works because I can access it from my office. I just can't access them when I remote on the server so it seems to be a browser issue on the server.

    Any ideas?

    Brandon

    Forms 12 c

    Windows Server 2012r2

    Update Java Version 8 66

    Internet Explore 11

    Brandon,

    Recently, I had this problem too and I sympathize with you knowing that your frustration level must be high.

    Try the following:

    1. As Hamid mentioned above, try to install JRE 32 bit.
    2. Try the next address in all certified browsers (IE, Firefox, and Google Chrome, etc.)

    http://servername/formes/frmservlet? config = webstart

    I hope this helps.

    Mika

  • IPad/Iphone scrolling questions on form

    My client would like to for customers to fill out a registration form on iPad and iPhone, but it is very difficult to scroll.  If I'm really light with my fingers I kind of can do but he would never use a form - too frustrating.

    Any ideas on how to make it easier to use?  I use Expert to shape for the real form.

    Thank you very much!

    Tammy

    Site: www.frankfordtennis.com

    Tennis Wellington online registration

    The div scroll bars are not easy to use on any device - particularly mobile.

    You need to remove the overflow and the height from your CSS properties.

    #content {}

    height: 580px;

    Width: 764px;

    text-align: left;

    margin: 0px auto auto 0px;

    float: left;

    background: url('images/bcgrnd_content.gif') repeat-y 0% 0% scroll #FFF;

    overflow: auto;

    padding-left: 30px;

    padding-right: 30px;

    }

    Nancy O.

  • Help please! Question of forms (PDF)

    Hi, I created 2 shapes.

    The first condition when I open it on my iPhone/iPad, I can use all the interactive capablilites such as interactive options for example: drop-down list etc.

    And even thought I'm sure that I created the 2nd form. I can't use dropdown lists and interactive options such as check of the boxes etc. It also will not display correctly. This works in the PDF but does not once saved and opened with my iphone. As mentioned, I did a very similar form to above and all the interactive options work.  If you could help it would be greatly appreciated as I really need to have the personnel to use these forms tomorrow.

    Thanks for any help you can give.

    You have to make sure that the PDF viewer you enough support for PDF Forms. For example, Adobe Reader for iOS allows you to work with different types of fields, but the (Preview) integrated by default PDF Viewer does not support the shape functions.

  • Question of forms

    I use the trial version and still trying to find my way around the whole of the program.  I created an order form that they can be changed in the drive and returned to me.  I added a couple of columns (pricing & expenses) and registered under a different name (final).  I'm taking the info from the command and retype in the final, which leaves room for error because of wrong type.  Is it possible to import the order data in the final form?  If not, is there a way to hide the columns of the customer and send just the final form?

    Thank you in advance.

    Dennis

    Yes, you can export data from one form to another: Tools > forms > more options forms > manage form data > export data

    However, so that this works, the domain names in each form must be the same.

  • question about forms

    This is my first time using a form on a Web site.

    I added a form on my site and I'm trying to understand how the whole process works. I searched for the answer, but I'm still a down confused.

    As I understand it, the action field is where the form processing occurs. Is it possible to have the information gathered in this form (very simple name, sex and email) sent to my e-mail address?

    What should I put exactly in the field of action?

    Thank you very much

    Jason

    Here is the code for a simple form that automatically sends the data fields. Simply change the destination email address and the email address OF your own e-mail address. Make sure that the file name has the extension php (example: form.php).



    <>
    {If ($ {_POST ['submit'])}
    extract ($_POST);
    $destination_email = "you@youremail.com;
    $from = "FROM: [email protected]"; "
    $objet_message = "message on the Web site;
    $email_body ="
    First name: $fname \n
    First name: $lname \n
    Sex: $sex \n
    "E-mail: $email \n";
    mail ($destination_email, $email_subject, $email_body, $from);
    echo "thank you for sending me an email.
    Die();
    }
    ?>



      

    First name:

    First name:

    Sex:

    E-mail:



     


  • Question in forms...!

    Hello

    I customized a form, but does not work the expected behaviours.
    Form Navigation Path: entry > invoice batches > entry
    Goal is to prevent the user to create invoices, it can insert or delete records and invoices.
    Navigation: Search for some lots of bills > click on the button of bills (so that we can see the invoices related to the batch) > a few invoices will be displayed... user should not be able to insert or delete invoices on this Panel.
    I have form customization on Fuction name: AP_APXINWKB_BATCHES and the name of the form: APXINWKB:
    Triggering event: A TIME NEW FORM INSTANCE
    For the type of property, I made INSERT_ALLOWED, UPDATE_ALLOWED, DELETE_ALLOWED 'FALSE' for the INV_SUM_FOLDER block. But I'm still able to create invoices in this Panel. Please give me pointers what should I change in my customization. Any help on this will be highly appreciated.

    Thank you
    Khadi

    Hi khadi.
    It works the same way with me. If I press the down arrow on the keyboard I have the message "FRM-41051: you cannot create folder here ', which is correct, because INSERT_ALLOWED is set to False. Also, when I query the records never validated I can choose Actions and post it, but I cannot insert a new record. If I validate one of the folders all others to freeze, but when I move upward or down they get out for updating. It seems that it works very well...

    Octavio

Maybe you are looking for