Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
db3d5d0
Fix icon (LearnFooter)
aykutkardas Jan 30, 2023
030f3cb
2.21.3
aykutkardas Jan 30, 2023
733e5b2
Integrate (LearnProgress) (#281)
aykutkardas Jan 30, 2023
f865cbb
2.22.0
aykutkardas Jan 30, 2023
e5bb2a1
Update learn progress position
aykutkardas Feb 1, 2023
d771907
2.22.1
aykutkardas Feb 1, 2023
9351d14
Fix style (LessonBox)
aykutkardas Feb 3, 2023
c484a3b
2.22.2
aykutkardas Feb 3, 2023
8f7e054
chore: upgrade dependencies
aykutkardas Feb 24, 2023
7ccbde3
refactor: fix links
aykutkardas Feb 24, 2023
ef858a1
fix: metadata duplicate
aykutkardas Feb 24, 2023
2e020f2
2.23.0
aykutkardas Feb 24, 2023
2bd9c2a
fix: browser shorcuts prevent
aykutkardas Feb 24, 2023
309d045
2.23.1
aykutkardas Feb 24, 2023
e51e29b
fix: remove log line
aykutkardas Feb 24, 2023
0ae3c02
2.23.2
aykutkardas Feb 24, 2023
a6542fb
feat: add `interactively.info` as a creator
aykutkardas Mar 18, 2023
7c74d28
fix: header responsive
aykutkardas Mar 18, 2023
0dd932a
2.23.3
aykutkardas Mar 18, 2023
94a2a1a
fix: missing creator URL
aykutkardas Mar 18, 2023
ce5a6ec
2.23.4
aykutkardas Mar 18, 2023
dbdb48c
Update general.json (#287)
LWJerri Mar 22, 2023
a03d9a3
[Ukranian] Update `/uk/learn.json` (#289)
LWJerri Mar 22, 2023
5e77d96
[Ukranian] Update `/uk/landing.json` (#290)
LWJerri Mar 22, 2023
f15bf1b
[Ukranian] Update `/uk/general.json` (#291)
LWJerri Mar 22, 2023
a91a818
[Ukranian] Update `/uk/cheatsheet.json` (#292)
LWJerri Mar 22, 2023
e08659a
[Ukranian] Translate `/uk/lessons/regexForSeo.json` (#288)
LWJerri Mar 23, 2023
f427b87
[Ukrainian] Change `'` to `ʼ` in `/uk/learn.json` (#293)
LWJerri Mar 23, 2023
48f3479
Update README.md (#297)
halilatilla Apr 4, 2023
981839b
[Chinese] Update /zh-cn/learn.json (#298)
Anshiii May 3, 2023
70d8c01
Fix grammar in en/general.json (#305)
smkbd May 7, 2023
e8ac1d8
style:button chinese text wrap (#314)
pan463859 Jul 15, 2023
622f7a1
2.23.5
aykutkardas Jul 15, 2023
4054335
Add next-sitemap generator (#316)
halilatilla Jul 28, 2023
0940119
Add Polish translation (#308)
andre-wojtowicz Aug 13, 2023
3a528b7
fix: update lang list
aykutkardas Aug 13, 2023
f66549c
2.24.0
aykutkardas Aug 13, 2023
27461fe
Add Korean localization (#223)
aykutkardas Aug 13, 2023
87ab700
2.25.0
aykutkardas Aug 13, 2023
0a1f79f
chore: update readme
aykutkardas Aug 13, 2023
e66b95c
fix: korean localization
aykutkardas Aug 13, 2023
f60f4db
2.25.1
aykutkardas Aug 13, 2023
bc33d3f
style: fix highlight color
aykutkardas Aug 30, 2023
d62d639
2.25.2
aykutkardas Aug 30, 2023
3087a94
fix: mobile header
aykutkardas Aug 31, 2023
fb2eefc
2.25.3
aykutkardas Aug 31, 2023
dde7a22
fix: temporarily disabled playground share feature
aykutkardas Nov 2, 2023
f1fdb28
2.26.0
aykutkardas Nov 2, 2023
e92fd2d
FR: Correct typo (#327)
jmalbert-s Nov 2, 2023
1976677
feat: update sponsor
aykutkardas Dec 6, 2023
e5deba5
2.26.1
aykutkardas Dec 6, 2023
2b934aa
feat: Translation to brazilian portuguese (#330)
danilopsss Dec 17, 2023
ea07668
fix: lang flag and update lang fixer script
aykutkardas Dec 17, 2023
fd9a91f
2.27.0
aykutkardas Dec 17, 2023
a725a09
Add Brazilian Portuguese localization (#313)
Polymatheia-BR Dec 17, 2023
b17ff5f
fixing to the correct flag, the previous one is from Portugal, not Br…
danilopsss Jan 5, 2024
2ab71c0
2.28.0
aykutkardas Jan 5, 2024
0d76f31
Add Czech language (#336)
oliverrr123 Feb 21, 2024
95c9d3a
fix: french translation
aykutkardas Feb 21, 2024
580d1b3
2.29.0
aykutkardas Feb 21, 2024
220da51
docs: update readme
aykutkardas Feb 21, 2024
04cb4a1
feature: rtl language support (#344)
ethsmaa Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NEXT_PUBLIC_BASE_URL=https://regexlearn.c1-europe.altogic.com/
NEXT_PUBLIC_API_BASE_URL=https://regexlearn.c1-europe.altogic.com/
NEXT_PUBLIC_BASE_URL=https://regexlearn.com/
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ yarn-debug.log*
yarn-error.log*
.firebase
.vscode
.idea
.next
out
out
public/robots.txt
public/sitemap*
100 changes: 61 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,80 @@
# [regexlearn.com](https://regexlearn.com)
# **🔓 [regexlearn.com](http://regexlearn.com/): Unlock the Secrets of Regex**

This is a project that makes learning how to write regex easy.
Embark on an exciting journey to learn and master regular expressions with
**[regexlearn.com](https://regexlearn.com/)**. Our engaging, step-by-step approach and feature-rich
platform ensure a smooth learning experience that will have you writing regex like a pro in no time!

## Features

- **Step by Step Learn**
- **Interactive**
- **Shortcut Friendly**
- **Cheatsheet**
- **Playground**
- Practice _(Soon)_
<br>

## Available Languages
## **🌟 Features**

- **🚶 Step-by-Step Learning:** Progress through thoughtfully crafted lessons and examples at your
own pace, catering to both beginners and experienced users.
- **🎓 Interactive:** Immerse yourself in hands-on activities to reinforce your understanding and
boost retention.
- **🚀 Shortcut Friendly:** Uncover valuable shortcuts and tips that will streamline and optimize
your regex-writing process.
- **📚 Cheatsheet:** Keep a handy, concise summary of regex syntax and usage at your fingertips for
quick reference.
- **🔬 Playground:** Freely experiment and test your regex patterns in a dedicated sandbox
environment without limitations.
- **💡 Practice:** Coming soon - Challenge yourself with a wide range of practical exercises to
refine and enhance your regex skills.

- **English**
- **Turkish**
- **Russian**
- **Spanish**
- **Chinese**
- **German**
- **Ukrainian**
- **French**
- _Korean_ [(Requested)](https://github.com/aykutkardas/regexlearn.com/issues/92)
- _Arabic_ [(Requested)](https://github.com/aykutkardas/regexlearn.com/issues/163)
- _Brazilian Portuguese_ [(Requested)](https://github.com/aykutkardas/regexlearn.com/issues/39)
- _Georgian_ [(Requested)](https://github.com/aykutkardas/regexlearn.com/issues/274)
<br>

_Please create an issue to add your own language._
## **🌍 Supported Languages**

**[regexlearn.com](http://regexlearn.com/)** is available in the following languages, with more on
the way:

- 🇺🇸 English
- 🇹🇷 Turkish
- 🇷🇺 Russian
- 🇪🇸 Spanish
- 🇨🇳 Chinese
- 🇩🇪 German
- 🇺🇦 Ukrainian
- 🇫🇷 French
- 🇵🇱 Polish
- 🇰🇷 Korean
- 🇧🇷 Brazilian Portuguese
- 🇨🇿 Czech

### Requested Translations

- 🇦🇪 Arabic [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/163)
- 🇬🇪 Georgian [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/274)
- 🇧🇩 Bengali [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/304)
- 🇮🇹 Italian [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/323)
- 🇮🇷 Persian [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/325)
- 🇻🇳 Vietnamese [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/329)
- 🇮🇩 Indonesian [(Issue)](https://github.com/aykutkardas/regexlearn.com/issues/335)

Interested in adding your language? Please
**[create an issue](https://github.com/aykutkardas/regexlearn.com/issues/new)** and let us know!

<br>

<h2 align="center">Our Sponsors</h2>

<p align="center">
<a href="https://ahrefs.com/" target="_blank">
<img src="preview/ahrefs.png"/>
</a>
<a href="https://wope.com" target="_blank">
<img src="preview/wope.png"/>
</a>
</p>
## Our Sponsors

<h2 align="center">Sponsoring</h2>
[![Ahrefs](preview/ahrefs.png)](https://ahrefs.com/) [![Wope](preview/wope.png)](https://wope.com)

<p align="center">This project is developed as open-source in our spare time. <a href="mailto:[email protected]">Contact</a> to support and appear as a sponsor.</p>
<br>

<h4 align="center"><a href="https://www.buymeacoffee.com/aykutkardas">Buy Me a Coffee!</a></h4>
## **💖 Sponsorship**

<br>
This project is a labor of love, developed as open-source during our free time. If you'd like to
support our mission and be featured as a sponsor, please
**[contact us](mailto:[email protected])**. Your generous contribution allows us to continue
enhancing regexlearn.com, fostering growth and learning within the community.

<h2 align="center">Preview</h2>
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/aykutkardas)

<br>

## Preview

![Preview](preview/preview-landing.png)

![Preview](preview/preview-learn.png)
Expand Down
5 changes: 5 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_BASE_URL,
generateRobotsTxt: true,
};
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "regexlearn",
"version": "2.21.2",
"version": "2.29.0",
"author": {
"name": "Aykut Kardaş",
"email": "[email protected]"
},
"scripts": {
"dev": "next dev -p 3003",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint",
"export": "next export",
"html-lang-fixer": "node ./scripts/html-lang-fixer.js"
},
"license": "MIT",
"dependencies": {
"@headlessui/react": "^1.6.6",
"@headlessui/react": "^1.7.11",
"@use-it/event-listener": "^0.1.7",
"axios": "^1.1.3",
"canvas-confetti": "^1.4.0",
Expand All @@ -24,24 +25,25 @@
"draft-js": "^0.11.7",
"lodash.xor": "^4.5.0",
"lookie": "^1.0.4",
"next": "12.2.2",
"next": "^13.2.1",
"query-string": "^7.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.0",
"react-icomoon": "^2.5.3",
"react-intl": "^6.0.5"
"react-icomoon": "^2.5.7",
"react-intl": "^6.2.10"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.3",
"@types/draft-js": "^0.11.8",
"@types/node": "^18.0.5",
"@types/react": "^18.0.15",
"autoprefixer": "^10.4.8",
"eslint": "7",
"eslint-config-next": "12.2.2",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"typescript": "^4.5.5"
"@types/react": "^18.0.28",
"autoprefixer": "^10.4.13",
"eslint": "^8.34.0",
"eslint-config-next": "^13.2.1",
"next-sitemap": "^4.1.8",
"postcss": "^8.4.21",
"tailwindcss": "^3.2.7",
"typescript": "^4.9.5"
}
}
16 changes: 0 additions & 16 deletions public/altogic.svg

This file was deleted.

Binary file added public/interactively.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/html-lang-fixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function htmlLangFixer(path) {
const stats = fs.lstatSync(currentPath);

if (stats.isFile() && el.endsWith('.html')) {
const result = currentPath.match(/^\.\/out\/(en|es|de|tr|uk|fr|ru|zh-cn)\/?/);
const result = currentPath.match(/^\.\/out\/(en|es|de|tr|uk|fr|ru|pl|ko|zh-cn|pt-br|cs-cz)\/?/);

if (result) {
replaceLangTag(currentPath, result[1]);
Expand Down
4 changes: 2 additions & 2 deletions src/components/CheatsheetDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const CheatsheetDemo = ({ data }: Props) => {
value: initialContent,
attributes: {
class:
'shadow-sm mx-1 my-[2px] px-1 py-[2px] rounded-md text-white bg-regreen-400 text-black inline-block',
'shadow-sm mx-1 my-[2px] px-1 py-[2px] rounded-md text-white bg-green-500 text-black inline-block',
},
}),
);
Expand All @@ -40,7 +40,7 @@ const CheatsheetDemo = ({ data }: Props) => {
const readableContent = (content || initialContent).replace(/\\n/gm, '<br />');

return (
<div className="font-mono">
<div dir='ltr' className="font-mono">
<div
className={cx(
'inline-block bg-jet-400 rounded-md p-3 my-1 text-center w-full relative mb-3 text-xs text-neutral-400',
Expand Down
Loading