Difference between revisions of "Template:RegexExample"

From CSE330 Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<div style="width:80%; margin:0 auto;">
 
<div style="width:80%; margin:0 auto;">
<div style="text-align:right;">{{#if:{{{method|}}}
+
<div style="text-align:right;">{{#ifeq: {{{method}}} | debuggex | [http://www.debuggex.com/?re={{urlencode:{{{regex}}}}}&str={{urlencode:{{{str}}}}} View in Debuggex] | [http://regexpal.com/?regex={{urlencode:{{{regex}}}}}&input={{urlencode:{{{str}}}}} View in RegExPal] }}</div>
| {{#if:{{{method}}}==debuggex
 
| [http://www.debuggex.com/?re={{urlencode:{{{regex}}}}}&str={{urlencode:{{{str}}}}} View in Debuggex]
 
| [http://regexpal.com/?regex={{urlencode:{{{regex}}}}}&input={{urlencode:{{{str}}}}} View in RegExPal]
 
}}
 
| [http://www.debuggex.com/?re={{urlencode:{{{regex}}}}}&str={{urlencode:{{{str}}}}} View in Debuggex] - [http://regexpal.com/?regex={{urlencode:{{{regex}}}}}&input={{urlencode:{{{str}}}}} View in RegExPal]
 
}}</div>
 
 
<div style="background-color:#FAEDC8; padding:8px; font:14px/12px monospace;">{{{regex}}}</div>
 
<div style="background-color:#FAEDC8; padding:8px; font:14px/12px monospace;">{{{regex}}}</div>
 
</div>
 
</div>

Revision as of 12:46, 23 March 2013

{{#ifeq: {{{method}}} | debuggex | View in Debuggex | View in RegExPal }}
{{{regex}}}