This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oRE = CreateObject("VBScript.RegExp") | |
oRE.Pattern = "regular expression here" | |
lcString = "string to search" | |
llResult = oRE.test(lcString) | |
lcMatches = oRE.Execute(lcString) | |
IF ALEN(lcMatches) > 0 | |
llResult = lcMatches(0).Submatches(0) && First match and first submatch/group | |
ENDIF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Example Usage: | |
CLEAR | |
Builder = CREATEOBJECT('HttpMessageBuilder') | |
*Builder.UserAgent = 'BK5' | |
Builder.AddHeader('TestHeader', 'test123 456') | |
Builder.AddHeader('TestHeader', 'test123 456') | |
Builder.AddParameter('TestParameter', 'Thisisat estparameter') | |
Builder.AddParameter('TestParameter', 'Thisisatestparam eter') | |
* You also get a free URLEncode function :) | |
Builder.URLEncode('str in g <3') |