October 18th, 2011, 07:30 AM
Help with VB Regex
I would like to use REGEX to search for string "/>" and capture the entire string (without space) enclosed between "< and /" and replace it with <String>TRUE</String>
for eg: I would like to search for <Monday /> then capture this in a variable say "String" and then replace this with <Monday>True</Monday>.
Can you please provide me with the script and instructions to use the same. I am a novice at this!!
October 18th, 2011, 11:19 AM
Don't use regular expressions.
Do use whatever XML parsing libraries are available to you. .NET, for one, has the System.Xml namespace.
December 7th, 2011, 05:18 PM
if you are asking for a particular <tag/> then you could use replace in vb or even cmd
Originally Posted by Kaustubh.kadu
in vb A$= replace (a$,"<tag/>","<tag>true</tag>")