Using the String.replace() method - JavaScript Tutorial

preview_player
Показать описание

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

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

Finnaly I understood how to replace a lot of letters from my strip. THANKS a lot and greetings from Colombia.

DanielCalleCO
Автор

Did not know about console.log(arguments). Very useful

PatrickLimitless
Автор

A regular expressions video would be nice

smoothbeak
Автор

Hi ! Whats the point of the plus sign after the d?

monsterminer
Автор

Hello! How do you get rid of everything after a semicolon?

mervinlee
Автор

Hello, is there an easy way to replace some text from a string to an html tag ?
Thank you in advance for your answer :)

Louis-krof
Автор

another amazing video. your youtube videos are better than your udemy class. Why you are not making a professional class on HTML, CSS and Javascript on udemy

junaidsalih
Автор

Can make a feed back form of the user**** that actually we can see.**** If we can please make a tutorial on it****

****Only html css and java script

anubhav
Автор

So, tell me about your thing for older women. :P

smoothbeak
Автор

Instead of using parseInt at the end you could also use a template literal: return `${g1 + g3}` or if you want it to use the groups to make more sense to the reader: return `${g3} ${g2} ${g1 + g3}`. Also, if you don't need to print the arguments you can convert your function to an arrow function making it more concise: console.log(myStr.replace(/(\d+)([^\d]+)(\d+)/g, (match, g1, g2, g3) => `${g3} ${g2} ${g1 + g3}`));

:)

altrae
Автор

no clue how \d+ equals the first number?

ruebenhales
Автор

Thanks for your video though it will take someone with sound knowledge of RegEx or quite brilliant to understand you. 😁

leonardmbibi
Автор

I was an excellent video, but I would have liked to see you grouping up a string with no numerical value. I mean, no numbers in it. If you could tell me how, I'd appreciate it.

kikevanegazz
Автор

Why YouTube didn't remove outline for the "Like" button ?!?!?!?

sodiumsulfur
Автор

6:15 uhhhh hey, i'm 31 and she's 21 $!

squeegeul.
Автор

This is nice, but not very practical, can you show an example of removing a reoccurring section of text/string from within an array of objects? Example [{ page: { results: [{ title: 'keep this - textI dont want' }, {keep this - difftextI dont want}, {keep this - diffdifftextI dont want} ]}}]

keithvaneaton
welcome to shbcf.ru