Hi, @eduardog26 and @scott-sumner,
Oh, yes, Scott, you’re perfectly right, about the search operation, without any replacement :-((
Of course, my previous regex works, only if the conditional replacement is present and if you perform a replace operation !
Why this behaviour ? Just because, the conditional replacement, separates, in two parts :
The search matches, about comments, which must NOT be changed, in any case ( so, replaced by themselves ! ( :$0 )
The search matches, about real code, which MUST be changed, according to the first part ( case TRUE : group 1 exists ) of the conditional replacement ?1\U\1
Indeed ! If you just want to search, for text, in particular zones ( Inside NO-comments zones, in our case ), the logic, exposed in my previous post, cannot be used !
I began to search for this problem. But, up to now, I cannot figure out any intelligent solution ! I just thought about the trivial possibility of getting rid of all comment areas which, automatically, would enable a search on code, only :-)
See you later !
Cheers,
guy038