User:Xenwolf/SandBox: Difference between revisions

Xenwolf (talk | contribs)
Xenwolf (talk | contribs)
Line 126: Line 126:
== Testing factor notation ==
== Testing factor notation ==


<code><nowiki>{{#regex: 2**-4*3**4*5**-1|/(\d+)\*\*(-?\d+)\*?/|\1<sup>\2</sup> &amp;nbsp;}}</nowiki></code>
<code><nowiki>{{#replace:{{#regex: 2^-4 * 3^4 * 5^-1|/(\d+)\s*\^\s*(-?\d+)(\s*\*\s*)?/|\1<sup>\2</sup> \3&amp;nbsp;}}|*|⋅}}</nowiki></code>


{{#regex: 2**-4*3**4*5**-1|/(\d+)\*\*(-?\d+)\*?/|\1<sup>\2</sup> &nbsp;}}
{{#replace:{{#regex: 2^-4 * 3^4 * 5^-1|/(\d+)\s*\^\s*(-?\d+)(\s*\*\s*)?/|\1<sup>\2</sup> \3&nbsp;}}|*|⋅}}