Like with most of your questions, you should start by showing some effort, like what you've tried and how your data look like. Are there edge cases like indels or in general cases where you have non 1vs1 nucleotide changes? Show an example (more than n=1) of the data. Brief Reminder On How To Ask A Good Question
using simple grep command you can extract the line based on pattern.
for e.g
grep "C>T" file.txt >output.txt
and grep can be done in R as well
a <- c("c.2455C>T","c.2455C>G","c.2455C>A")
b <- grep(pattern = "[C]>[TG]",a,perl = TRUE,value = TRUE) # as Pierre suggested
b
[1] "c.2455C>T" "c.2455C>G"
Like with most of your questions, you should start by showing some effort, like what you've tried and how your data look like. Are there edge cases like indels or in general cases where you have non 1vs1 nucleotide changes? Show an example (more than n=1) of the data. Brief Reminder On How To Ask A Good Question
Sorry about that. I have read the link you shared and will definitely consider them all while asking questions in the future.