mirror of
https://github.com/nhammer514/textfiles-politics.git
synced 2025-07-23 22:40:38 -04:00
pushing current regex files
This commit is contained in:
parent
52b725ce60
commit
2d607a6d31
333 changed files with 212646 additions and 0 deletions
192
conspiracyTextFilesRegEx/regexNotes.md
Normal file
192
conspiracyTextFilesRegEx/regexNotes.md
Normal file
|
@ -0,0 +1,192 @@
|
|||
# Conspiracy RELAX NG
|
||||
|
||||
First
|
||||
|
||||
```
|
||||
Find:&
|
||||
Replace with:&
|
||||
```
|
||||
```
|
||||
Find:<
|
||||
Replace with:<
|
||||
```
|
||||
```
|
||||
Find:>
|
||||
Replace with:>
|
||||
```
|
||||
|
||||
Fixing Format (dot matches all on)
|
||||
```
|
||||
Find:^\s+
|
||||
Replace with:
|
||||
```
|
||||
```
|
||||
Find:\s+$
|
||||
Replace with:
|
||||
```
|
||||
```
|
||||
Find: {2,}
|
||||
Replace with:
|
||||
```
|
||||
|
||||
Delete unnecessary dividers:
|
||||
Dot Matches All On:
|
||||
```
|
||||
Find:#{4,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:\*{4,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:={4,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:-{4,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:_{3,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:~{3,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:\+{3,}
|
||||
Replace with:<div>
|
||||
```
|
||||
```
|
||||
Find:\| ?
|
||||
Replace with:
|
||||
```
|
||||
|
||||
Put tag around whole file:
|
||||
```
|
||||
Find:.+
|
||||
Replace with:<conspiracyFile>\0</conspiracyFile>
|
||||
```
|
||||
|
||||
Finding Phone Numbers:
|
||||
```
|
||||
Find:\(?\d{3}-?\)? ?\d{3}-?\d{4}
|
||||
Replace with:<data type="phoneNumber">\0</digit>
|
||||
```
|
||||
|
||||
Finding percentages:
|
||||
```
|
||||
Find:\d*-*\d*\.?\d+%
|
||||
Replace with: <data type="percent" unit="%">\0</data>
|
||||
```
|
||||
|
||||
Changing Digit Format
|
||||
|
||||
Millions:
|
||||
```
|
||||
Find:(\d+)\.(\d+)\s+?million
|
||||
Replace with: \1\200000
|
||||
```
|
||||
```
|
||||
Find:(\d+)\s+?million
|
||||
Replace with: \1000000
|
||||
```
|
||||
```
|
||||
Find:(\d+)(-\d000000)
|
||||
Replace with: \1000000\2
|
||||
```
|
||||
|
||||
Billions:
|
||||
```
|
||||
Find:(\d+)\.(\d+)\s+?billion
|
||||
Replace with:\1\200000000
|
||||
```
|
||||
```
|
||||
Find:(\d+)\,(\d+)\s+?billion
|
||||
Replace with:\1\2000000000
|
||||
```
|
||||
```
|
||||
Find:(\d+)\s+?billion
|
||||
Replace with:\1000000000
|
||||
```
|
||||
```
|
||||
Find:(\d+)(-\d000000000)
|
||||
Replace with:\1000000000\2
|
||||
```
|
||||
|
||||
Trillions:
|
||||
```
|
||||
Find:(\d+)\.(\d+)\strillion
|
||||
Replace with:\1\200000000000
|
||||
```
|
||||
```
|
||||
Find:(\d+)?,?(\d+)\s?trillion
|
||||
Replace with:\1\2000000000000
|
||||
```
|
||||
|
||||
Delete commas in digits:
|
||||
```
|
||||
Find:(\d{1,3}),(\d{3}),?(\d{3})?,?(\d{3})?
|
||||
Replace with:\1\2\3
|
||||
```
|
||||
|
||||
Find ISBN:
|
||||
```
|
||||
Find:\d+-\d+-\d+-\d+
|
||||
Replace with:<data type="ISBN">\0</data>
|
||||
```
|
||||
|
||||
Finding Time:
|
||||
```
|
||||
Find:(\d+:\d{2,}:\d{2,})\s+([A-Z]{3})
|
||||
Replace with:<data type="time" timezone="\2">\1</data>
|
||||
```
|
||||
```
|
||||
Find:(\d{2}:\d{2}:\d{2})\s+
|
||||
Replace with:<data type="time">\1</data>
|
||||
```
|
||||
|
||||
|
||||
Finding different conspiracy groups
|
||||
|
||||
Illuminati
|
||||
New World Order
|
||||
C&SL
|
||||
NASA
|
||||
UFO
|
||||
Unidentified Flying Object
|
||||
CNN
|
||||
TAX
|
||||
AIDS
|
||||
HIV
|
||||
CAIB
|
||||
CIA
|
||||
US
|
||||
USA
|
||||
WHO
|
||||
World Health Organization
|
||||
POW
|
||||
Prisoner(s( of War
|
||||
WWIII
|
||||
World War III
|
||||
WWII
|
||||
World War II
|
||||
WWI
|
||||
World War I
|
||||
FBI
|
||||
IBM
|
||||
NCR
|
||||
BCD
|
||||
Mafia
|
||||
UN
|
||||
Drug
|
||||
USSR
|
||||
NCI
|
||||
FDC
|
||||
FAO
|
||||
Food and Agriculture Organization
|
||||
IDA
|
||||
IMF
|
||||
International Monetary Fund
|
Loading…
Add table
Add a link
Reference in a new issue