Robert Jones
New Member
- Joined
- Jan 26, 2008
- Messages
- 3
Hi People
I have searched a _lot_ for this solution, but I do not know how to do it in VBA. I want to be able to call a function in the following way:
MsgBox RegExp("abc123def456", "a(.+?)def(.+?)6", "$1Hello$2")
And for that to return: bc123Hello45
I have found many regex functions, but they very often either use fewer parameters, return $1 etc. literal in the result or appear at first to be what I am looking for but fail to work.
I would be really grateful if you could help.
Many thanks.
I have searched a _lot_ for this solution, but I do not know how to do it in VBA. I want to be able to call a function in the following way:
MsgBox RegExp("abc123def456", "a(.+?)def(.+?)6", "$1Hello$2")
And for that to return: bc123Hello45
I have found many regex functions, but they very often either use fewer parameters, return $1 etc. literal in the result or appear at first to be what I am looking for but fail to work.
I would be really grateful if you could help.
Many thanks.