Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

reverse a string without affecting special characters in javascript

var stringIn = 'name@gmail.com';
var rev = stringIn.replace(/[a-z]+/gi, function(s){return s.split('').reverse().join('')});
document.write(rev); // eman@liamg.moc
Comment

PREVIOUS NEXT
Code Example
Javascript :: lodash toLower 
Javascript :: javascript difference between two dates in days 
Javascript :: Array Pagination in JS 
Javascript :: remove an element from an array javascript 
Javascript :: select all elements javascript 
Javascript :: async await useeffect react 
Javascript :: semantics ui complete responsive menu 
Javascript :: windows terminal vai kill all node js port 
Javascript :: check date in between two dates nodejs 
Javascript :: validate phone number regex 
Javascript :: vanilla javascript add class 
Javascript :: how to find the smallest two numbers in an array javascript 
Javascript :: get combinations of two js 
Javascript :: get $_get in javascript 
Javascript :: ReferenceError: primordials is not defined 
Javascript :: gsap js link 
Javascript :: safeareaview not working on android react native 
Javascript :: how to remove empty spaces befiore string js 
Javascript :: how to send a message discord.js 
Javascript :: remove validators angular 
Javascript :: make first letter capital 
Javascript :: react native image blur 
Javascript :: redux devtools 
Javascript :: how to append the dropdown values by jquery each function 
Javascript :: add javascript keyup on input 
Javascript :: javascript string contains substring 
Javascript :: Could not find the drag and drop manager in the context of ResourceEvents. Make sure to wrap the top-level component of your app with DragDropContext 
Javascript :: chartjs min 
Javascript :: javascript htmlentities 
Javascript :: onclick inline function react 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =