I want to find all occurrences of . in a string that occur before a =. The string that I am performing the search on is:
case pencil.tip.crop.circle.badge.plus = "pencil.tip.crop.circle.badge.plus"
I am using the following regular expression to target everything that occurs before the =:
.+?(?==)
Below, you can see the results of the search:
The highlighted result is from where I would like to extract all occurrences of . in order to obtain all occurrences of . that occur before the =.
I assume that I need to escape . in my expression, but I do not know where I need to do that in order to extract all occurrences. I understand that .+? matches all characters, but replacing .+? with \.+? yields no results:
What expression do I need in order to obtain all occurrences of . that occur before the =?


