Capturing Parts with Parentheses
Key points
- Write a pattern with parentheses
- Enter the text
- See the groups
Regex Tester shows the contents of the parentheses for each match.
Steps
- Write a pattern with parentheses
- Enter the text
- See the groups
A pattern like "(\d+)-(\d+)" pulls out two numbers separately.
Use "Regex Tester" (free)
Tools that go well with this
- Compare Two Texts (Diff): Show the differences between two texts line by line.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.