Regex to extract first 5 digit+character from last hyphen

后端 未结 0 1046
别跟我提以往
别跟我提以往 2021-01-24 22:44

I am trying to extract first 5 character+digit from last hyphen. Here is the example

  1. String -- X008-TGa19-ER751QF7

Output -- X008-TGa19-ER751

相关标签:
回答
  • 消灭零回复
提交回复
热议问题