mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
31 lines
850 B
JavaScript
31 lines
850 B
JavaScript
![]() |
import Extract from "../../operations/Extract.js";
|
||
|
import Regex from "../../operations/Regex.js";
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Regex module.
|
||
|
*
|
||
|
* Libraries:
|
||
|
* - XRegExp
|
||
|
*
|
||
|
* @author n1474335 [n1474335@gmail.com]
|
||
|
* @copyright Crown Copyright 2018
|
||
|
* @license Apache-2.0
|
||
|
*/
|
||
|
let OpModules = typeof self === "undefined" ? {} : self.OpModules || {};
|
||
|
|
||
|
OpModules.Regex = {
|
||
|
"Regular expression": Regex.runRegex,
|
||
|
"Find / Replace": Regex.runFindReplace,
|
||
|
"Strings": Extract.runStrings,
|
||
|
"Extract IP addresses": Extract.runIp,
|
||
|
"Extract email addresses": Extract.runEmail,
|
||
|
"Extract MAC addresses": Extract.runMac,
|
||
|
"Extract URLs": Extract.runUrls,
|
||
|
"Extract domains": Extract.runDomains,
|
||
|
"Extract file paths": Extract.runFilePaths,
|
||
|
"Extract dates": Extract.runDates,
|
||
|
};
|
||
|
|
||
|
export default OpModules;
|