I have the following text.
CBEAM 241678 245002 240528 240628 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241697 245002 240230 240330 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241698 245002 240330 240430 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241699 245002 240430 240530 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241700 245002 240530 240630 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241708 245002 240231 240331 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241709 245002 240331 240431 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241710 245002 240431 240531 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
CBEAM 241711 245002 240531 240631 10. 0. 10. GOO
0. 0.2750 0. 0. 0.2750 0.
I am trying to capture both occurrences of .2750 dependent on the 2nd number of the column above it.
For example, looking at the numbers in the 2nd column,I want to change both ".2750"s for "CBEAM 241699" this would mean I'd need a search expression that grabs both .2750's that is directly below the line "CBEAM 241699".
Ideally I'd like my search expression to search and replace for multiple "CBEAM XXXXXX" which I know would consists of using "CBEAM 241710|241711", etc
My issue with my regex expression involves trying to capture data on the newline and not grabbing all the other DATA with it.
Any suggestions?