hi,
im writing a small website parsing tcl script. my question is how i can handle with multiple regexp matches? how can i work with every single match or how to put these in a variable?
Code: Select all
set matches [regexp -inline -all -- {some pattern} data]
foreach {match submatch1 submatch2 ...} $matches {
#do something useful for each match here...
}