0

I am trying so check my DocumentID using RegEx then setting other fields based on the ID.

For example my ID is a string '05 B 38R'

The type of product is based on the first two numbers '05'

The color of the product is based on the first letter 'B'

The size of the product is based on the last two numbers '38'

And lastly the last letter is based on the design of the product 'R'

How can I use a RegEx expression for this, or are there another way to going about this?

  • It 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 Nov 19 '20 at 09:39

0 Answers0