JavaScript regular expression syntax reference Documentation
Related Tools
JavaScript regular expression (JS regular expression) online test, providing JavaScript regular expression online matching and replacement functions. By controlling parameter settings, you can control the behavior of regular expressions, such as ignoring case, global mode, multiline mode, etc.
JavaScript regular expression online test provides JavaScript regular expression online matching and replacement functions.
- Enter the original string to match in the text content.
- Enter a valid JavaScript regular expression in the regular expression, such as \d+ to match number.
- Select whether to perform regular expression matching or regular expression replacement in the method.
- The matching at x in the matching result shows the matching times of the regular expression in the string, and each matching is highlighted in the text box. By default, only one matching or replacement is performed. If global matching or replacement is required, specify the global parameter in the control parameter.
- You can click the control parameter button to set control parameters to control the matching behavior of regular expressions. The control parameters will be stored and remain valid the next time you visit.
-
Control parameter details:
global:gPerform global lookup
ignoreCase:iIgnore case
multiline:mMultiline mode
dotAll:sAllow. Match line
unicode:uTreat patterns as Unicode points
sticky:yMatches from the current position of the target string