Find and Replace Strings with JavaScript

preview_player
Показать описание
This video talks about how you can search through paragraphs of text and replace selected values with other values from input fields.

Рекомендации по теме
Комментарии
Автор

You keep posting great JS tutorials on topics I didn’t know I wanted to learn. Keep them coming!

Jeff-
Автор

To keep each tutorial at this high quality is not a easy thing, Thank you from my heart.

rotrose
Автор

Fire! Thanks so much for making this tutorial and thoroughly explaining your code!

astrarai-thesobercoder
Автор

Hello Steve. I want to know how to do the find and replace trick but when finding multiple different items e.g. vowels. Is this possible using this method? I want to go through a string and replace all vowels. TIA!

jp-hzbr
Автор

it doesn’t work for textarea if i edit what should i change?

fate
Автор

sir i want to replace text inside textarea field not in paragraph what is JavaScript code for it

steadfast
Автор

sir for case sensitive what i will be use?

steadfast
Автор

Hello sir, can you do a video on multiple search and replace? I mean searching for more than one words

investmentbros
Автор

Can Anyone one help me out "Joan Smith" or "Matthew Joan Smith" how I will get only first and last word from these string.Answer must be : - for "Joan Smith" it will be (JS) and for "Matthew Joan Smith" it will be (MS).

singhvimlesh
Автор

why do you use while?
you can use regexp - its much simpler, works faster and isn't case sensitive

p.textContent.replace(new RegExp(find, 'gi'), replace)

zipponvr
welcome to shbcf.ru