Python RegEx လုပ်ဆောင်ချက်များ
RegEx လုပ်ဆောင်ချက်များ
မော် 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 |