I'm looking at protein sequence that is highly repetitive and I'm trying to format a specific letter in three-letter motif. For example here's a short snippet of the sequence using the single-letter abbreviations for the amino acids (it's highly repetitive):
PGGSGPAAATAAAGSGPSGYGPGASGPVGADAAAAAATGSAGPGRQQAYGPGESGAAAAAASGAGPGRQLGYGPGGSGAAAAAAAGGPGYGGQQGYGPGGAGAAAAAAAGGAGPGRQQTYGPGGSGAAATAAGGSGPGGYGQGPSGYGPSGPGGQQGYGPGGSGAAAAAAAGEAGPGRQQGYGPRGSGAAAAAAAGGPGYGGQSGYGPGGAGAAAAAAAGGAGPGRQQEYGPGGSGAAAAAAAAAGSG
I want to find in the above sequence, all occurrences of a three letter motif (e.g. AAA or GAA) and change the format (highlight/underline/bold etc) of the middle letter BUT NOT the surrounding letters. (e.g AAA or GAA)
Using RegEx it's very easy to find what I'm looking for using the lookaround functions (e.g (?<=A)[A](?=A)
) but most RegEx editors I've found don't let you change the format of the returned expressions, only replace them with another expression. Is there any way to accomplish this is in word using the built-in wildcards? Or is there some other way to use RegEx editors to do this?
EDITS:
For reference, this image is exactly what I want. All the highlighted letters need formatting. I cannot figure out how to copy this into word in a way that will save the highlighted letters. I've gotten to the desperate point of trying to OCR this image (with predictably terrible results).