Es regex matchformat
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xregex matchformat [edit] DescriptionCompare the string with the regular expression, put the tokens into the formatstring and save the resultstring into variable
[edit] Parameters
[edit] Exampleses_xsetinfo myvar 0 es_xsetinfo mystring "!bet 1000 #ct" es_regex matchformat myvar "!bet .* ([#][a-z]+)" server_var(mystring) "This is the first token: %1. This is the second token: %2." // Will output into myvar: "This is the first token: 1000. This is the second token: #ct."
[edit] Notes
[edit] See also |
