dataflow1117@gmail.com
FacebookTwitter

en English
af Afrikaanssq Albanianam Amharicar Arabichy Armenianaz Azerbaijanieu Basquebe Belarusianbn Bengalibs Bosnianbg Bulgarianca Catalanceb Cebuanony Chichewazh-CN Chinese (Simplified)zh-TW Chinese (Traditional)co Corsicanhr Croatiancs Czechda Danishnl Dutchen Englisheo Esperantoet Estoniantl Filipinofi Finnishfr Frenchfy Frisiangl Galicianka Georgiande Germanel Greekgu Gujaratiht Haitian Creoleha Hausahaw Hawaiianiw Hebrewhi Hindihmn Hmonghu Hungarianis Icelandicig Igboid Indonesianga Irishit Italianja Japanesejw Javanesekn Kannadakk Kazakhkm Khmerko Koreanku Kurdish (Kurmanji)ky Kyrgyzlo Laola Latinlv Latvianlt Lithuanianlb Luxembourgishmk Macedonianmg Malagasyms Malayml Malayalammt Maltesemi Maorimr Marathimn Mongolianmy Myanmar (Burmese)ne Nepalino Norwegianps Pashtofa Persianpl Polishpt Portuguesepa Punjabiro Romanianru Russiansm Samoangd Scottish Gaelicsr Serbianst Sesothosn Shonasd Sindhisi Sinhalask Slovaksl Slovenianso Somalies Spanishsu Sudanesesw Swahilisv Swedishtg Tajikta Tamilte Teluguth Thaitr Turkishuk Ukrainianur Urduuz Uzbekvi Vietnamesecy Welshxh Xhosayi Yiddishyo Yorubazu Zulu

DataInFlow
DataInFlow
A Market place of programming
  • Home
  • Tutorial
    • HTML Tutorial
    • PHP TUTORIAL
  • Article
    • Technology
    • Entertainment and News
    • Game
    • Recipes
  • Queries
  • Programming
    • HTML
    • CSS
    • jQuery
    • JavaScript
    • WordPress
    • PHP
    • Codeigniter
    • Laravel
    • Ionic
    • Node JS
    • Vue JS
    • Android
    • ASP .NET
  • Sports
    • Cricket
    • Football
    • Football Live Score
  • Web Tools
  • Home
  • Tutorial
    • HTML Tutorial
    • PHP TUTORIAL
  • Programming
  • Queries
  • Sports
    • Cricket
    • Football
    • Football Live Score
  • Article
    • Entertainment and News
    • Technology
    • Recipes
    • Game
  • Web Tools
  • About Us
  • Contact

Remove special characters from string jquery

121 viewsDecember 25, 2018jquery
0
Dhiman Pardeep (anonymous) Posted December 22, 2018

I want to remove special characters from string jquery.

If my string return that

1
my_string ="----------success";

then remove “————” this and only show the success from the string value.

How can I remove special characters from string jquery?

0 Comments

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Sachin Sachin (anonymous) Posted December 22, 2018

If you want to remove “————–” this sign from your string value then follow this example code:

1
2
3
<script type="text/javascript">
var return_result=res.replace(/[^a-z0-9s]/gi, '').replace(/[_s]/g, '-')
</script>

Hope tit will be helpful for you.

Select 0 Comments
Write your answer.
Register or Login
Question and answer is powered by AnsPress.io
Cool Ball
Cool Ball is a puzzle element of 2D balance ball game. This is a very simple and interesting and attractive game. Install this game now. Get it on Google Play
Subscribe to our Newsletter
Search anything
Questions
Add leading zeros to a number in CODEIGNITER 1 Answer | 0 Votes
How to get first name from full in PHP 1 Answer | 0 Votes
How reload a page after clicked SweetAlert ok 1 Answer | 0 Votes
How set in gender default male and female in MySQL database 2 Answers | 0 Votes
How to animate my ionic app using CSS? 1 Answer | 0 Votes
Recent Programming Article
  • Load more results functionality with jQuery , Ajax and PHP
    December 22, 2018
  • Facebook login with JavaScript SDK
    December 22, 2018
  • Facebook login in Codeigniter and MySQL
    December 22, 2018
  • Live search like google in Codeigniter, jQuery
    December 22, 2018
  • facebook twitter share
    Add facebook & twitter share link in your website
    December 22, 2018
Hire us

Hi
Do you want to make web application with php and php framework(CI, Laravel)? Want to make android application with hybrid framework ? Then contact with us. We provide support for developing website and web application at very affordable price.
E-Mail us at: dataflow1117@gmail.com

Recent Technlogy News
  • Most downloaded app lock in Play Store
    December 22, 2018
  • Xiaomi Mijia Technical
    December 22, 2018
  • Xiaomi shoe Start Process
    December 22, 2018
© Copyright 2017-2018 DataInFlow

About Us    Privacy policy    Contact us

Login

Lost your password?

Reset Password

Log in