All Stars Solutions, including Fewest Rules and Fewest Chars.
Levels
Level 01
Fewest Rules
- /have/g => had
- /is\b/g => was
- /are/g => were
Fewest Chars
- /have/g => had
- /is\b/g => was
- /are/g => were
Level 02
Fewest Rules
- /man/g => woman
- /\bhe/g => she
- /(H|h)is\s(?=s|t|b)/g => $1er
Fewest Chars
- /man/g => woman
- /\bhe/g => she
- /(H|h)is\s(?=s|t|b)/g => $1er
Level 03
Fewest Rules
- /\s+\d:\d+/g =>
Fewest Chars
- /\s+\d:\d+/g =>
Level 04
Fewest Rules
- /\d\s{0,5}\d/g => 11
- /H|\d/g => B
Fewest Chars
- /\d\s{0,5}\d/g => 11
- /H|\d/g => B
Level 05
Fewest Rules
- /(J\w+)/g => $1_RomeoROMEO
- /\b(Romeo|ROMEO)/g => $1_JulietJULIET
- /\b[A-Z]+_[A-Z][a-z]+(\w+)/g => $1
- /\b[A-Z][a-z]+_([A-Z][a-z]+)(\w+)/g => $1
Fewest Chars
- /Juliet/g => Rom_eo
- /JULIET/g => ROM_EO
- /Romeo/g => Juliet
- /ROMEO/g => JULIET
- /_/g =>
Level 06
Fewest Rules
- /\bhate/g => love
- /(bad|terrible)\b/g => good
- /n\saw/g => wonder
- /badly/g => well
- /(had|was)\s(?!n)/g => $1 not
Fewest Chars
- /\bhate/g => love
- /(bad|terrible)\b/g => good
- /n\saw/g => wonder
- /badly/g => well
- /(had|was)\s(?!n)/g => $1 not
Level 07
Fewest Rules
- /(\d+)\d\d/g => $1
- /(?<=\w)A(?=[a-z]?)|A(?=nd\b)/g => a
Fewest Chars
- /(.+)\d\d/g => $1
- /\BA/g => a
- /And\b/g => and
Level 08
Fewest Rules
- /Xh?\w*/g => (censored)
Fewest Chars
- /Xh?\w*/g => (censored)
Level 09
Fewest Rules
- /([a-zA-Z])|(\s[23]\w+,)/g =>
Fewest Chars
- /[a-zA-Z]/g =>
- /\s[23]\w+,/g =>
Level 10
Fewest Rules
- /\s+/g =>
- /e+(?!k)/g => e
- /s+/g => s
- /o+(?!k)/g => o
Fewest Chars
- /\s+/g =>
- /e+(?!k)/g => e
- /s+/g => s
- /o+(?!k)/g => o
Level 11
Fewest Rules
- /\(.+?\)/g =>
Fewest Chars
- /\(.+?\)/g =>
Level 12
Fewest Rules
- /X|or(?=or)|that.(?=t)|erase\s|point\s|au.+c\s/g =>
Fewest Chars
- /X|or(?=or)|that.(?=t)|erase\s|point\s|au.+c\s/g =>
Level 13
Fewest Rules
- /(nce|ye|gin|nk|ler)/g => $1s
- /(tur\b|rm\b)/g => $1ed
Fewest Chars
- /(nce|ye|gin|nk|ler)/g => $1s
- /(tur\b|rm\b)/g => $1ed
Level 14
Fewest Rules
- /(c.+\.).+(b.+ng).+(re.+g).(b.+s).+/g => I follow $4, $3 the order, $2 where he $1
Fewest Chars
- /(c.+\.).+(b.+ng).+(re.+g).(b.+s).+/g => I follow $4, $3 the order, $2 where he $1
Level 15
Fewest Rules
- /(.)(.).{5}(.)..(.).(.).{10}(.).+/g => $1$5$3 $2$6$2$4!
Fewest Chars
- /(.)(.).{5}(.)..(.).(.).{10}(.).+/g => $1$5$3 $2$6$2$4!
Level 16
Fewest Rules
- /\b(\d{1,2})\./g => 00$1.
- /\b(\d+)(\d\d)\.?\d*/g => $1.$2
- /\s00/g => 0
Fewest Chars
- /\b(\d{1,2})\./g => 00$1.
- /\b(\d+)(\d\d)\.?\d*/g => $1.$2
- /\s00/g => 0
Level 17
Fewest Rules
- /D.+?ng.(.+?)\s(I.+)/g => $2$1
Fewest Chars
- /D.+?ng.(.+?)\s(I.+)/g => $2$1
Level 18
Fewest Rules
- /([^A-df-z\s])(n?a?t?|qu|tabl)([h-j])/g => $3$2$1
Fewest Chars
- /([^A-df-z\s])(n?a?t?|qu|tabl)([h-j])/g => $3$2$1
Level 19
Fewest Rules
- /((^\w+|(?<=\n)\w+)@\w+\.(net|com?|edu|org))\n/g => $1 REAL\n
Fewest Chars
- /((^\w+|(?<=\n)\w+)@\w+\.(net|com?|edu|org))\n/g => $1 REAL\n
Level 20
Fewest Rules
- /\*(.+?)\./g => \n ($1)
- /(?<!\()(L.+?|S.+?|J.+?|Oe.+?s)\s([A-Z’])/g => \n\n $1\n$2
- /^\n\n/g =>
- /\sY/g => \nY
Fewest Chars
- /\*(.+?)\./g => \n ($1)
- /(?<!\()(L.+?|S.+?|J.+?|Oe.+?s)\s([A-Z’])/g => \n\n $1\n$2
- /^\n\n/g =>
- /\sY/g => \nY
Written by Sealleci
Hope you enjoy the Guide about Copy Editor: A RegEx Puzzle – All Stars Solutions, if you think we should add extra information or forget something, please let us know via comment below, and we will do our best to fix or update as soon as possible!
Recommended for You:
- All Copy Editor: A RegEx Puzzle Posts List
Leave a Reply