0

I try to parse string like this: "[S01.E01] Scorpion - Punto único de fallo". My aim is obtain the following result:

[01, 01, Scorpion, Punto único de fallo]

So, Is it possible to obtain the first and second element directly as integer with regex expression?

PD: I don't know it's the best option to parse this string with regex. Accept suggestion!

Wiktor Stribiżew
  • 484,719
  • 26
  • 302
  • 397
  • Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Jul 16 '20 at 11:26

0 Answers0