User:SOTO/bot tricks: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
Line 86: Line 86:
This ''baasically'' does the job, though it's messy and inefficient:
This ''baasically'' does the job, though it's messy and inefficient:
<pre style="background:black!important;color:white">
<pre style="background:black!important;color:white">
python pwb.py replace -regex "\n(\*+)(\S)" "\n\1 \2" "(==+)(\S.*?\S)(==+)" "\1 \2 \3" "(=+|==|===|====) = (.*?) = (=+|==|===|====)" "\1= \2 =\3" "=== =" "====" "= ==" "===" "(\*|\*+|\*\*|\*\*\*|\*\#|\*\*\#) (\*|\#|\#+|\#\#|\#\#\#|\:|\:+|\:\:|\:\:\:)(.*?)" "\1\2 \3" "\* \*" "**" "\* \#" "*#" "\# \#" "##" "\*  " "* " "\#  " "# " "\:  " ": " -start:! -pt:2 -summary:"Horizontal spacing"
python pwb.py replace -regex "\n(\*+)(\S)" "\n\1 \2" "(==+)(\S.*?\S)(==+)" "\1 \2 \3" "(=+|==|===|====) = (.*?) = (=+|==|===|====)" "\1= \2 =\3" "== =" "===" "= ==" "===" "(\*|\*+|\*\*|\*\*\*|\*\#|\*\*\#) (\*|\#|\#+|\#\#|\#\#\#|\:|\:+|\:\:|\:\:\:)(.*?)" "\1\2 \3" "\* \*" "**" "\* \#" "*#" "\# \#" "##" "\*  " "* " "\#  " "# " "\:  " ": " -summary:"Horizontal spacing" -start:! -pt:2
</pre>
</pre>


Cookies help us deliver our services. By using our services, you agree to our use of cookies.