I am trying to do the following using a VBs Regular Expression object, but could not find an easy way to do this. Is there anyone who could offer some suggestions?
For example, I have the line "12 <56> 89", I would like to get the line inside "<>", which in this case should be "56". What I'm doing now, I'm trying to find the expression "<\ d +>" that will return <56>. Then I try to find the expression "\ d +" from the result of the first match, which will return 56.
I donβt like it because it has to call this function twice. I am wondering if it is possible to get a string inside "<>" using only one regular expression? Thanks!
Thanks Allen
regex vbscript
Allen
source share