简体   繁体   中英

How to get the regular expression matching a format?

I need to find out regular expression for the below. It always starts with two characters MP, then there will be two random characters and then a number of any length. Is there any tool I can use to generate a regular expression by providing some examples? Thank you!

Examples:
MPAA1234
MPXD876323
MPJH349

You could use an online regex tester to check your formula interactively :

For exemple :

regex101.com

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM