tags:

views:

57

answers:

2

I want to validate below data using regex and python.
Below is the dump of the data which Can be stored in string variable

Start 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=(digits)

Thanks in advance

+1  A: 

You could use r'(Start \d+.*?group=.*?name=.*?number=.*?end=\d+)*'.

Alex Martelli
thanks for info
A: 

Thanks Alex

But I am new to python.

Will please provide little bit more

Thanks in advance,

You should add a comment to Alex's answer, not post a new answer.
Laurence Gonsalves
-1: This it not an answer. This is a comment. Delete this.
S.Lott