sphiratrioth666 commited on
Commit
ed4b3b4
·
verified ·
1 Parent(s): a4d7669

Upload 8 files

Browse files
regex/00. Regex Order.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 1. Trim Incomplete Sentences
2
+ 2. Find Last Special Character
3
+ 3. Remove **
4
+ 4. Remove ``````
5
+ 5. User's Quotations Add
6
+ 6. No Italics
7
+ 7. No Quotations
regex/regex-find_last_special_character.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "54d5e101-bbb4-41ae-8944-7eb5db3280b3",
3
+ "scriptName": "Find last special character",
4
+ "findRegex": ".*(\\*|```|\")(.*)$",
5
+ "replaceString": "$0$1",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 2
9
+ ],
10
+ "disabled": false,
11
+ "markdownOnly": false,
12
+ "promptOnly": false,
13
+ "runOnEdit": true,
14
+ "substituteRegex": 0,
15
+ "minDepth": null,
16
+ "maxDepth": null
17
+ }
regex/regex-no_italics.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "80ff929c-0e66-40f8-9e56-2738c77dc306",
3
+ "scriptName": "No Italics",
4
+ "findRegex": "/\\*/g",
5
+ "replaceString": "",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 1,
9
+ 2
10
+ ],
11
+ "disabled": true,
12
+ "markdownOnly": true,
13
+ "promptOnly": false,
14
+ "runOnEdit": true,
15
+ "substituteRegex": 0,
16
+ "minDepth": null,
17
+ "maxDepth": null
18
+ }
regex/regex-no_quotations.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "f9c7c7af-bee9-4be0-aac6-135078f408d4",
3
+ "scriptName": "No Quotations",
4
+ "findRegex": "/\\\"/g",
5
+ "replaceString": "",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 1,
9
+ 2
10
+ ],
11
+ "disabled": true,
12
+ "markdownOnly": true,
13
+ "promptOnly": false,
14
+ "runOnEdit": true,
15
+ "substituteRegex": 0,
16
+ "minDepth": null,
17
+ "maxDepth": null
18
+ }
regex/regex-remove___.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "832dae94-71b4-4fc1-908c-b5fa8b7a8479",
3
+ "scriptName": "Remove **",
4
+ "findRegex": "/\\*\\*/g",
5
+ "replaceString": "*",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 1,
9
+ 2
10
+ ],
11
+ "disabled": false,
12
+ "markdownOnly": false,
13
+ "promptOnly": false,
14
+ "runOnEdit": true,
15
+ "substituteRegex": 0,
16
+ "minDepth": null,
17
+ "maxDepth": null
18
+ }
regex/regex-remove_``````.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "7a4ce526-9f0f-4e12-bf08-58d2c4bf9f05",
3
+ "scriptName": "Remove ``````",
4
+ "findRegex": "/\\`\\`\\`\\`\\`\\`/g",
5
+ "replaceString": "```",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 1,
9
+ 2
10
+ ],
11
+ "disabled": false,
12
+ "markdownOnly": false,
13
+ "promptOnly": false,
14
+ "runOnEdit": true,
15
+ "substituteRegex": 0,
16
+ "minDepth": null,
17
+ "maxDepth": null
18
+ }
regex/regex-trim_incomplete.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "5e003377-96ca-4797-bc7c-1e3df65ea512",
3
+ "scriptName": "Trim Incomplete",
4
+ "findRegex": "(.*?)([.!?]|```)(?!.*([.!?]|```))[^.!?]*$",
5
+ "replaceString": "$1$2",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 2
9
+ ],
10
+ "disabled": false,
11
+ "markdownOnly": false,
12
+ "promptOnly": false,
13
+ "runOnEdit": true,
14
+ "substituteRegex": 0,
15
+ "minDepth": null,
16
+ "maxDepth": null
17
+ }
regex/regex-user's_quotations_-_add.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "0b5cadcb-985d-48d8-8c42-e33fa375399f",
3
+ "scriptName": "User's Quotations - add",
4
+ "findRegex": "((?:^|(?:\\*[^*]*\\*|\"[^\"]*\")\\s*))([^\"*]+?\\S)(\\s*)(?=(?:\"|\\*|$))",
5
+ "replaceString": "$1\"$2\"$3",
6
+ "trimStrings": [],
7
+ "placement": [
8
+ 1
9
+ ],
10
+ "disabled": false,
11
+ "markdownOnly": true,
12
+ "promptOnly": false,
13
+ "runOnEdit": true,
14
+ "substituteRegex": 0,
15
+ "minDepth": null,
16
+ "maxDepth": null
17
+ }