diff --git a/src/components/Sidebar/sidebarLists.js b/src/components/Sidebar/sidebarLists.js index 4570f0f..13259e3 100644 --- a/src/components/Sidebar/sidebarLists.js +++ b/src/components/Sidebar/sidebarLists.js @@ -78,4 +78,11 @@ export const sideBarList = [ route: "/url-parser", tags: "URL Components,URL Parsing,HTTP" }, + { + name: "Regex Tester", + iconClass: "bi bi-regex", + route: "/regex-tester", + tags: "regex" + + }, ]; \ No newline at end of file diff --git a/src/pages/RegexTester/index.vue b/src/pages/RegexTester/index.vue new file mode 100644 index 0000000..75da464 --- /dev/null +++ b/src/pages/RegexTester/index.vue @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + Enter Regular Expression + + + + + Enter Test String + + + + + + + + + + + Invalid Regular Expression + + + + Matches: + + {{ match[0] }} at position {{ match.index }} + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/RegexTester/style.css b/src/pages/RegexTester/style.css new file mode 100644 index 0000000..7dc774e --- /dev/null +++ b/src/pages/RegexTester/style.css @@ -0,0 +1,12 @@ +#testInput { + height: 72vh; +} + +@media screen and (max-width: 800px) { + #testInput { + height: 40vh; + } +} +.custom-height { + resize: vertical; +} diff --git a/src/router/routes.js b/src/router/routes.js index b836e3c..4105935 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -12,6 +12,7 @@ import SQLFormatter from "../pages/SQLFormatter/index.vue"; import PSQLFormatter from "../pages/PSQLParser/index.vue" import Index from "../pages/Index/index.vue"; import URLParser from "../pages/URLParser/index.vue"; +import RegexTester from "../pages/RegexTester/index.vue" const routes = [ @@ -80,6 +81,11 @@ const routes = [ component: PSQLFormatter, name: "Postgres URL Parser", }, + { + path: "/regex-tester", + component: RegexTester, + name: "Regex Tester", + }, // { // path: "/:slug", // component: Module,