I am trying to write a regex expression to replace the following in a space delimited file
The file has:
WORD WORD C F F ANOTHER WORD
ANOTHER WORD D H F ANOTHER ANOTHER
I am trying to get the expression to capture the LAST F between F F and H F.
I wrote this expression but it doesn't process correctly in JAVA.
\\(\\(?:[a-z][a-z0-9_]*\\)\\)(\\s+)(F)(\\s+)
Can anyone help out? I'm trying to use this with String.ReplaceALL.
Thanks.