Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,28 +0,0 @@
Function LeftTrim(s)
Set regex = New RegExp
With regex
.Pattern = "^\s*"
If .Test(s) Then
LeftTrim = .Replace(s,"")
Else
LeftTrim = s
End If
End With
End Function
Function RightTrim(s)
Set regex = New RegExp
With regex
.Pattern = "\s*$"
If .Test(s) Then
RightTrim = .Replace(s,"")
Else
RightTrim = s
End If
End With
End Function
'testing the functions
WScript.StdOut.WriteLine LeftTrim(" RosettaCode")
WScript.StdOut.WriteLine RightTrim("RosettaCode ")
WScript.StdOut.WriteLine LeftTrim(RightTrim(" RosettaCode "))