I'm trying to work with Slack's API and it sends a character string for user names, for instance: <@UCH65RHRC>
Therefore, in the API JSON body's text, there could be several of the above patterns in a line, such as:
"Hi <@UCH65RHRC> and <@UCH65RHRF>, thanks for all the great work!"
How can I use Python's regex to find all the matching strings with this predefined pattern, which is: <@#########>, where the # (9 total) can be 0-9 and A-Z?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…