I have text file with such structure:
Some data
====================================================================
1 !V09 ! -0.544 V ! -0.900- -0.250 V ! gd
2 !Vk10 ! -0.582 V ! -0.900- -0.250 V ! gd
3 !V11 ! -0.591 V ! -0.900- -0.250 V ! gd
4 !V12 ! -0.544 V ! -0.900- -0.250 V ! gd
Some data
====================================================================
1 !V09 ! -0.544 V ! -0.900- -0.250 V ! gd
2 !Vk10 ! -0.582 V ! -0.900- -0.250 V ! gd
...
How to get content from all table? One table per regex match.
Updated
In sum, I need such data in matches:
1 !V09 ! -0.544 V ! -0.900- -0.250 V ! gd
2 !Vk10 ! -0.582 V ! -0.900- -0.250 V ! gd
3 !V11 ! -0.591 V ! -0.900- -0.250 V ! gd
4 !V12 ! -0.544 V ! -0.900- -0.250 V ! gd
1 !V09 ! -0.544 V ! -0.900- -0.250 V ! gd
2 !Vk10 ! -0.582 V ! -0.900- -0.250 V ! gd
...
That looks like fixed-width columns. If there aren’t any spaces within your data, use
String.Split()to split on whitespace. If there are spaces, pull out substrings usingString.Substring()and trim whitespace withString.RTrim().Please don’t use a regex here. That would be overkill.