-
Notifications
You must be signed in to change notification settings - Fork 44
/
popularities_regex.txt
9 lines (5 loc) · 1.11 KB
/
popularities_regex.txt
1
2
3
4
5
6
7
8
9
perl -i -p0777e 's/set_politics\s*=\s*\{[^(set_politics)]*?(parties\s*=\s*\{.*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality|nationalist).*?=\s*?([0-9]+\.?[0-9]*)).*?\}.*?\})/set_popularities = \{\n\t$3 = $4\n\t$6 = $7\n\t$9 = $10\n\t$12 = $13\n\}\nset_politics = {/msg' *
set_politics\s*=\s*\{[^(set_politics)]*?(parties\s*=\s*\{.*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality).*?=\s*([0-9]+\.?[0-9]*)).*?((democratic|fascism|communism|neutrality|nationalist).*?=\s*?([0-9]+\.?[0-9]*)).*?\}.*?\})
set_popularities = \{\n\t$3 = $4\n\t$6 = $7\n\t$9 = $10\n\t$12 = $13\n\}\nset_politics = {
localisation fixing
sed -i -E '2,$s/\s*(.*)/ \1/' *.yml