Re: Pass RegexMatch to a function?

2016-08-08 Thread Jonathan M Davis via Digitalmars-d-learn
how to pass a RegexMatch to a function, right now I have code > like the follows: > > RegexMatch regexMatch = matchAll(urlMatch.match, > regex(tr.pattern, tr.caseless?"i":"")); > string command = replaceMatchTokens(urlMatch.match, regexMatch); > > ... &g

Pass RegexMatch to a function?

2016-08-08 Thread Gerald via Digitalmars-d-learn
I have a RegexMatch that I want to pass to a function that takes the match and replaces various tokens in a string with the match and/or individual groups of the match. I'm struggling to figure out how to pass a RegexMatch to a function, right now I have code like the follows: RegexMatch