簡體   English   中英

如何在 Python 中使用正則表達式獲取特定字符

[英]How to get specific characters using Regular Expression in Python

我得到了一個 email 格式的字符串,比如

james@gmail001.com

我怎樣才能得到 substring 001 更重要的是,如何使用 function 來返回累積001的 email ?

Like each execution of the function and return different results like james@gmail001.com james@gmail002.com james@gmail003.com

謝謝~

我得到了一個 email 格式的字符串,比如

james@gmail001.com

我怎樣才能得到 substring 001 更重要的是,如何使用 function 來返回累積001的 email ?

Like each execution of the function and return different results like james@gmail001.com james@gmail002.com james@gmail003.com

謝謝~

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM