Regex for finding eligible areas for optional chaining

Viewed 22

I'm want to implement optional chaining throughout an existing javascript project.

Optional chaining

I would run a regex search on IDE to find all eligible instances where optional chaining can be applied.

What can be the correct regex pattern for this?

I currently want to focus on these 2 patterns:

x.x

x._x
0 Answers
Related