Lỗi should not has special character là gì

Special characters are characters such as en dashes, em dashes and curly quotations marks, which are not included on a standard keyboard or have a reserved meaning in HTML.

If special characters are included in fields such as Index, Group name, Username, and Workflow description it can cause problems like pages not showing properly in GoFileRoom.

The first character of the string should not contain special characters which I can achieve using /[!@#$%&*[]_+-=[]{};':"\|,.\/?]+$/

But subsequent characters should not contain specific special characters, which are !@$%^*+=[]{};:\|?

I tried that using regex /[!@#$%&[]_+-=[]{};':"\|,.\/?][!@$%^+=[]{};:\|?]+$/ and negating the result but its not working.

I want to allow all other characters other than these special characters so I am trying to negate the result of above regex.

What I mean is, first character should accept everything except special character and subsequent chars should accept everything except specified special characters.

Warning: The retired, out-of-support Internet Explorer 11 desktop application has been permanently disabled through a Microsoft Edge update on certain versions of Windows 10. For more information, see Internet Explorer 11 desktop app retirement FAQ.

Source: Microsoft Support

RAPID PUBLISHING

RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Symptom

When you use the address bar of Internet Explorer 6.0 or later to enter a username and password to access an FTP site, and the format of the URL you enter is ftp://username:password@domain, the following error message is displayed:

Windows cannot find ' ftp://username:password@domain'. Check the spelling and try again.

Cause

Either the username or the password contains any one of the characters:

: # ? / \ %

This behavior is by design.

Resolution

If the username or password needs to contain any one of the characters listed in the Cause section, you will need to encode the special characters in the following way:

# -> %23

/ -> %2F

: -> %3A

? -> %3F

\ -> %5C

% -> %25

More Information

Consider the following example.

A user with the username "jdoe" and a password of "Sure?" who wants to access an FTP site on a server called "ftpserver".

When the user tries to access the site using Internet Explorer and enters ftp://jdoe:Sure?@ftpserver into the address bar, the access will fail and the error message described above will be displayed.

However, when the user enters ftp://jdoe:Sure%3F@ftpserver in the address bar, he or she will successfully access the FTP server.

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE [THE “MATERIALS”] FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

You can write on change client script and use below script to check if it contains @ character in it.

if[newValue.indexOf["@"]>-1]{

alert["You are not allowed to enter '@' in password"];

g_form.setValue["field_name",""];//set field value back to empty

}

Please mark answer as Correct or Helpful based on impact.

Regards, Abhijit Community MVP 2023

Chủ Đề