Joe_Fox
Well-Known Member
Anyone any good at using regular expressions to find certain stuff in some code?
I want to find all occurences of where a </div> tag is followed by another </div> tag.
The second </div> tag can be right next to the first, on the next line or even separated from the first tag by white space.
If there is anything inbetween the two </div> tags then this should not be counted.
For example:
These files should be matched:
1.
2.
3.
These files should NOT be matched:
1.
2.
3.
If anyone can provide me with a regular expression that I can use to search through my files of code to find all as explained above I'll be eternally grateful.
Cheers,
Joe
I want to find all occurences of where a </div> tag is followed by another </div> tag.
The second </div> tag can be right next to the first, on the next line or even separated from the first tag by white space.
If there is anything inbetween the two </div> tags then this should not be counted.
For example:
These files should be matched:
1.
Code:
</div></div>
Code:
</div> </div>
Code:
</div>
</div>
These files should NOT be matched:
1.
Code:
</div>some text</div>
Code:
</div>some text </div>
Code:
</div>some text
</div>
If anyone can provide me with a regular expression that I can use to search through my files of code to find all as explained above I'll be eternally grateful.
Cheers,
Joe