Skip to tool

C Shell Regex match all Online

Run regex global match and return all matches.

The output updates as you type. The tool processes input in your browser.

Worked example

The result lists each match and its captured groups. The browser uses global matching with JavaScript regex syntax.

Regex pattern
"/id=(\\d+)/"
Flags
"g"
Sample input
id=11 id=22 id=33
Sample output
[
  [
    "id=11",
    "11"
  ],
  [
    "id=22",
    "22"
  ],
  [
    "id=33",
    "33"
  ]
]

Using this operation in C Shell

The interactive result uses JavaScript. Use quoting to keep argument boundaries intact. An external command such as awk, sed, or tr supplies operations beyond shell expansion.

C Shell reference