I want to validate below data using regex and python.
Below is the dump of the data which Can be stored in string variableStart 0 .......... group=..... name=...... number=.... end=(digits) Start 1 .......... group=..... name=...... number=.... end=(digits) Start 2 .......... group=..... name=...... number=.... end=(digits) Start 3 .......... group=..... name=...... number=.... end=(digits) Where ......is some random data need not to validate ... .. Start 100 .......... group=..... name=...... number=.... end=(dig开发者_StackOverflow社区its)
Thanks in advance
You could use r'(Start \d+.*?group=.*?name=.*?number=.*?end=\d+)*'
.
精彩评论