E
Eric Gibson
Hey all,
I'm trying to do a regexp that will gracefully extract the fields (fn)
from a string in this format:
(f1, f2, f3),(f1, f2, f3),(f1, f2, f3),...,(f1, f2, f3)
Is there a way I could grab each (f1, f2, f3) and then iterate through
them gracefully. I'm using Split(str, ",\)") , but then I have to remove
the ('s and )'s from the beginning and end of the first and last () set.
It's not a big deal, it's just ugly.
Can't I do a regexp like "\(.*\)", and iterate through every match in a
string of indeterminate length?
Thanks,
Eric
I'm trying to do a regexp that will gracefully extract the fields (fn)
from a string in this format:
(f1, f2, f3),(f1, f2, f3),(f1, f2, f3),...,(f1, f2, f3)
Is there a way I could grab each (f1, f2, f3) and then iterate through
them gracefully. I'm using Split(str, ",\)") , but then I have to remove
the ('s and )'s from the beginning and end of the first and last () set.
It's not a big deal, it's just ugly.
Can't I do a regexp like "\(.*\)", and iterate through every match in a
string of indeterminate length?
Thanks,
Eric