Regex tester
Pattern
Input
@foreach(region){
    @foreach(subregion){
        @{subregion.name}
    }@
}@

abcde

@foreach(destination){
    @{destination.name}
}@
Options
Replacement
Click the context tab to see replacements.
2 matches found in about 6 milliseconds.
IndexPositionMatched String${open}
00@foreach(region){
@foreach(subregion){
@{subregion.name}
}@
}@
empty string
195@foreach(destination){
@{destination.name}
}@
empty string
@foreach(region){
​    @foreach(subregion){
​        @{subregion.name}
​    }@
​}@
​
​abcde
​
​@foreach(destination){
​    @{destination.name}
​}@
  1. empty string


  2. abcde

  3. empty string