Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to remove dash from string in javascript

var str="185-51-671";
var newStr = str.replace(/-/g, "");
Comment

PREVIOUS NEXT
Code Example
Javascript :: slugify text javascript 
Javascript :: javascript call function every second 
Javascript :: return json with jango 
Javascript :: one line uuid 
Javascript :: remove empty lines regex 
Javascript :: on keyup jquery 
Javascript :: emmet not working react js 
Javascript :: remove a special character from string javascript 
Javascript :: js replace quotes 
Javascript :: jquery extract number from string 
Javascript :: javascript generate unique letters and numbers id 
Javascript :: javascript start function on load 
Javascript :: command to create react app 
Javascript :: react-native text overflow ellipsis 
Javascript :: error:03000086:digital envelope routines::initialization error 
Javascript :: check if date time string is invalid date js 
Javascript :: javascript trello title swap 
Javascript :: javascript get attribute 
Javascript :: javascript check if blank space 
Javascript :: javascript float to int 
Javascript :: ts-node dotenv 
Javascript :: jquery click or touch 
Javascript :: react doesnt load local images but external does 
Javascript :: synchronous ajax 
Javascript :: Render static html files in express 
Javascript :: get height and width of screen in react native 
Javascript :: how to remove a class in js after 100 milliseconds 
Javascript :: jquery set value by name 
Javascript :: use icon in node js html 
Javascript :: javascript scroll to end of div 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =