4 ms·
Can confirm the value of checking for repeated words such as ‘the the’. This is the final example I give my Econ PhD students in a session on RegExps: https://u
by gmac 2y ago
Can confirm the value of checking for repeated words such as ‘the the’. This is the final example I give my Econ PhD students in a session on RegExps: https://users.sussex.ac.uk/~gm268/iphd/regexps/regexps.pdf https://users.sussex.ac.uk/~gm268/iphd/regexps/regexps.pdf
- skalarproduktr 2y agoThis is a great summary how to use regexps, complete with some very nice examples. Thank you!
- ninalanyon 2y agoJust so long as it doesn't blindly modify "that that".
- gmac 2y agoRight. You can just search for /\b(\w+) \1\b/ and see what comes up. There are usually false positives of one kind or another.
- Timwi 2y agoI once wrote a sentence with a double “in” in it — it was something like “let's see what state this is in in two weeks’ time” or similar — and at least two people commented thinking that it was wrong and needed an “in” removed...