पायथन रेगेक्स फ़ंक्शंस
रेगेक्स फ़ंक्शन
मॉड्यूल कार्यों का re
एक सेट प्रदान करता है जो हमें एक मैच के लिए एक स्ट्रिंग खोजने की अनुमति देता है:
Function | Description |
---|---|
findall | Returns a list containing all matches |
search | Returns a Match object if there is a match anywhere in the string |
split | Returns a list where the string has been split at each match |
sub | Replaces one or many matches with a string |