UPD: I need to check if @if(Medellin) so take "City Medellin" but if @if(null) don't take anything
Here is my pattern:
(?<!@if\(null\)).*?@end$
Testing strings:
@if(Medellin) City Medellin @end
@if(null) City Medellin @end
I understood that first checks right side, and it takes all string :(