I tested with regex101 but my code does not work in R. What can I do? Please help me.
(?<=\[).+?(?=\])
I have includes >XP_002499978.1 predicted protein [Micromonas commoda] type of fasta file and I need >Micromonas_commoda_XP_002499978.1 type of info.
I need to delete and change parenthesis info.