Skip to content

aahedi/replaceAll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

replaceAll.js

replaceAll library js by Aahedi

Usage

Add <script src="https://aahedi.github.io/replaceAll/replaceAll.js"></script>

then call function

replaceAll(string, find_string, replace_string, options)

example

replaceAll(
'123hedi456 abchediefg 123hedi abchedi hedi456 hediefg 123Hedi456',
'hedi',
'****', 
{prefix_is:'123',
suffix_is:'456',
prefix_not:'123',
suffix_not:'456',
insensitive:false})

result

123hedi456 abc****efg 123hedi abc**** hedi456 ****efg 123Hedi456

License

MIT

About

replaceAll library js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published