Content deleted Content added
Zhihua.lai (talk | contribs) No edit summary |
|||
Line 190:
/sw([0-9]+)-([0-9]+).*/.replace_all("sw65456-324sss", "$1") # "65456"
/sw([0-9]+)-([0-9]+).*/.replace_all("sw65456-324sss", "$2") # "324"
</pre>
===HTTP Library===
Magik supports making HTTP or HTTPS requests via http library, see below examples:
<pre>
magikhttp << http.new()
magikhttp.url("https://www.google.com").get()
magikhttp.url("https://www.google.com").post({"User-agent", "Bot"}, "some data")
</pre>
|