Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript to mask email address

var maskid = myemailId.replace(/^(.)(.*)(.@.*)$/,
     (_, a, b, c) => a + b.replace(/./g, '*') + c
);
Comment

PREVIOUS NEXT
Code Example
Javascript :: js replace all char in string 
Javascript :: js get user location 
Javascript :: how to generate 6 random alphanumerals in js 
Javascript :: change style of class divs jquery 
Javascript :: remove whitespace with regex javascript 
Javascript :: vh not working on phone 
Javascript :: default ordering false in datatable 
Javascript :: make the log do a jump in line js 
Javascript :: javascript if undefined 
Javascript :: javascript check if date is less than today 
Javascript :: javascript get if IE11 
Javascript :: how to click button programmatically in jquery 
Javascript :: math random 0 to 100 
Javascript :: js refresh button 
Javascript :: react native spinner 
Javascript :: nodejs to exe 
Javascript :: react native get numeric random string length of 5 characters 
Javascript :: javascript array to comma separated string 
Javascript :: vue prop array default 
Javascript :: how to append to file in js 
Javascript :: discord js user has role 
Javascript :: format JSON code javascript 
Javascript :: return value from fetch javascript 
Javascript :: laravel variable in javascript 
Javascript :: angularjs cdn 
Javascript :: fullscreen mode javascript 
Javascript :: update angular cli 10 
Javascript :: javascript check if value exists in array of objects 
Javascript :: scrollto element by id center 
Javascript :: reload app in react native 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =