Ok, asp classic site.
I have a page/doc description.
Now, one of the descriptions has a very very long string in it something like:
The is the description of adfaslkdfhasdfasdhfaadgjadfgjadgjasf
Well, it's much longer though. A bad doc I guess but there could be more.
So, need to take this description, test it and maybe remove it or replace with "".
Been trying to look into group regex for length of 70 and replace that string group with ""
I've gotten this far and just can't seem to find the solution to this:
Set RegularExpressionObject = New RegExp
With RegularExpressionObject
.Pattern = ".{80,}"
.IgnoreCase = True
.Global = True
End With
'expressionmatch = RegularExpressionObject.Test(desc)
Set expressionmatch = RegularExpressionObject.Execute(desc)
If expressionmatch Then
'desc = "test"
End If
This needs to be adjusted to if in desc, the string to search, replace any work longer than 80 with empty string or "".
Any suggestions out there?
Thanks,
Zath