Does Python replace take regex?

To replace a string in Python using regex(regular expression), use the regex sub() method . The re. sub() is a built-in Python method that accepts five arguments maximum and returns replaced string. You can also use the str.

Sizin İçin Seçtik  Long pozisyon açmak nedir?

Leave a Reply

Your email address will not be published. Required fields are marked *