I have a file which will contain contents similar to the following example:
?[A7]DA<DA-SG
'[G7]G%SD\$DF
#[27]F:./4FFF
?[P9]W3_2SS_F
'[90]GA\\WTER
Each line ends in \r\n
.
From this particular file, I need to replace the F:./4FFF
part of the line #[27]F:./4FFF
.
So far to start, I have this pattern in order to try and capture the part I need to replace:
\#\[27\]([\w\W]*)\r\n
The problem is that between the closing ]
and the \r\n
, could be any alphanumeric character or symbol.
I think the problem lies in the capturing group??? What is the correct pattern for this; I will be doing this in VBA.