Good afternoon. There is a certain template view 111/22 33 444/55 66. Trying to write a function that will test user input against this pattern and then split this string into individual numbers - 111, 22, 33, 444, 55 and 66, respectively. Found out that you need to use regular expressions. Started to read the documentation on them and realized that the deal will have a very long and hard. He is not mastered, so turn to you, experts of the toaster.
Could you suggest any ready solution which just checks a string against this pattern? Have to be this way - 111/22 33 444/55 66. Nominal is the number of characters, spaces, slashes and so on. At the slightest deviation, the function should generate an error. Where in the template the numbers must be only numbers, no letters. Thanks in advance!