Skip to content

Commit bbcc3d1

Browse files
committed
Improve query string support docs.
1 parent 275be92 commit bbcc3d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev/src/docs/sidebar_content.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,13 @@ home.kids = [
185185
label:"Query string support",
186186
desc:"In addition to the built in <b>Save</b> mechanism which creates a shareable link, RegExr also supports the ability to pre-populate a pattern via the query string."+
187187
"<p>The following query string params are recognized:<ul>"+
188-
"<li><code>expression</code> & <code>text</code> - populate their respective fields</li>"+
188+
"<li><code>engine</code> - the RegEx engine to use (<code>js</code> or <code>pcre</code>)</li>"+
189+
"<li><code>expression</code> - populates the Expression area. It is recommended to pass a full expression with flags (<code>/.*/ig</code>) not just the pattern (<code>.*</code>)</li>"+
190+
"<li><code>text</code> - populates the Text area</li>"+
189191
"<li><code>tool</code> - sets the tool (replace, list, details, or explain)</li>"+
190192
"<li><code>input</code> - populates the tool input field</li>"+
191193
"</ul></p>"+
192-
"Ex. <a href='http://regexr.com/?expression=.&text=testing'>regexr.com/?expression=.&text=testing</a>"
194+
"Ex. <a href='http://regexr.com/?expression=/./g&text=test'>regexr.com/?expression=/./g&text=test</a>"
193195
}
194196
]
195197
}

0 commit comments

Comments
 (0)