In C# I want to search for where a Match occurs starting with an integer in parenthesis followed by these characters "PLA" parenthesis and "match" this (I'll read into memory) until the next set is reached.
Thus the sample code would be
(1965
("PLA")
("GEN_ANGLE")
("Line to line angle")
(
("clinesegs" 3565.01 1265.99 "SURFACE")
("clinesegs" 3618.02 1255.00 "SURFACE")
)
((3586.02 1267.20 "SURFACE"))
(120.000)
(90.000)
)
(1966
("PLA")
("GEN_ANGLE")
("Line to line angle")
(
("clinesegs" 3831.98 1255.00 "SURFACE")
("clinesegs" 3882.92 1268.07 "SURFACE")
)
((3863.98 1267.20 "SURFACE"))
(120.000)
(90.000)
)
I WANT to "match" the data and only grab this data based on knowing that "1965" is the ID i'm looking for.
(1965
("PLA")
("GEN_ANGLE")
("Line to line angle")
(
("clinesegs" 3565.01 1265.99 "SURFACE")
("clinesegs" 3618.02 1255.00 "SURFACE")
)
((3586.02 1267.20 "SURFACE"))
(120.000)
(90.000)
)
I can find "(1965" with:
(\(1965)
.. or (with (ADD) in front):
[(](ADD){1}\r\n\r\n\t\s[(][0-9]{4,}\r\n\r\n\t\s\s(\("){1}[a-zA-Z]{1,}("\)){1}
.. but I can't seem to really get these types of regex to work it must be spacing and line breaks
I am stuck with understanding the matching of end PLA and "detecting" the ending )
before the next set of data starts (1966 ("PLA")
as I figured that is what I would use in the match to detect the end of the match, but just not include it in the findings.