How should regex looks in Visual Studio search text (Ctrl+Shift+f). I want to find all GetById method invocations where first argument has random name, but second has fixed name : 'transaction'
My examples
Sth1.Instance.GetById(formInstanceSessionId, transaction);
Sth2.Instance.GetById(userId, transaction);
Sth3.Instance.GetById(invoiceId, transaction);
I have tried the following regex, but it's not working:
GetById[(]*[,]\stransaction[)]
