# Grep / Regular Expression Iterator

**URL:** https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724
**Category:** Feature Requests
**Created:** [July 28, 2006, 8:57am UTC](https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724 "2006-07-28T08:57:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [July 28, 2006, 8:57am UTC](https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724/1 "2006-07-28T08:57:53Z")

</div>

It would be nice to have a RegEx Iterator.  
  
Options.  
 Dot Matches newline   
 Case insenstive   
 ^$ match at line breaks  
  
 Match into variable.   
 Capturing Group Name into Variable (Need to be a List since there can be more than one.)  
  
 Replace Match with Regular Expression Value (Needs to support Capturing Group) (I think “Text Replace” may support this now)  
  
  
I was looking for a quick way to get all of the TODO comments out of my Delphi Source Code.

---

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [July 28, 2006, 10:57am UTC](https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724/2 "2006-07-28T10:57:50Z")

</div>

Just incase someone is intrested... The following RegEx gets all of the TODO: Comments, in delphi source code.  
  
The TODO text is also placed in the named reference "todotext"  
  
(?":("?:{|\(\*)\s?TODO\s?:(?[\w\s]\*)(?:}|\*\))|//\s?TODO\s?:(?.\*))

---

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [July 28, 2006, 10:59am UTC](https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724/3 "2006-07-28T10:59:05Z")

</div>

I guess that does not work... It thought my  
:  
(  
characters where for a frown :(

---

<div class="post-metadata">

### Author: ![rlove](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rlove/32/27_2.png) [@rlove](https://www.finalbuilder.com/forums/u/rlove)
#### Post date: [July 28, 2006, 11:00am UTC](https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724/4 "2006-07-28T11:00:59Z")

</div>

It also does not like the less than and greater than characters that where in the expression and stripped them and the containing text.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 31, 2006, 1:22am UTC](https://www.finalbuilder.com/forums/t/grep-regular-expression-iterator/3724/5 "2006-07-31T01:22:36Z")

</div>

Robert, the forum software has some issues with some characters. We are hoping to install an update soon, just waiting on updates to some other DNN modules before we install since we will be updating DNN at the same time.
