Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

replacing a value in string using aregular expression pyhton

import re

s = 'aaa@xxx.com bbb@yyy.com ccc@zzz.com'

print(re.sub('[a-z]*@', 'ABC@', s))
# ABC@xxx.com ABC@yyy.com ABC@zzz.com
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript Arrow Function with One Argumen 
Javascript :: how to get json response from rest api in node js 
Javascript :: use css child selector inside js 
Javascript :: modulus js 
Javascript :: load.json 
Javascript :: kafka nodejs example 
Javascript :: react native image with header and body 
Javascript :: node save wav base64 
Javascript :: how to console.log variable in js 
Javascript :: react datepicker 
Javascript :: how to split an array into two javascript 
Javascript :: javascript formate date 
Javascript :: loop through async javascript -4 
Javascript :: start animation with javascript 
Javascript :: export function node js 
Javascript :: .includes is not a function 
Javascript :: react-load-animations 
Javascript :: how to avoid duplicate values in dropdownlist using jquery 
Javascript :: how to print something in javascript 
Javascript :: alert javascript react native 
Javascript :: javascript get last word in string 
Javascript :: how to create a object in javascript 
Javascript :: search an array with regex javascript indexOf 
Javascript :: javascript join address to string 
Javascript :: sequelize one to many 
Javascript :: Error: ENOENT: no such file or directory, lstat ode_modules@react-navigationcoresrcgetStateFromPath.tsx 
Javascript :: js array 
Javascript :: javascript replace tag 
Javascript :: install react-native-safe-area-context 
Javascript :: how to use data sets javascrip[t 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =