Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name grouping and replacement
- Named group is formed with `(?<name>)`.
- Captured text can be inserted in result using `$+{name}`.
- Example text: `<foo><bar>Hello</bar> <baz>World!</baz></foo>`
- In the regex: `<foo><bar>(?<message>.+)</bar> <baz>(?<object>.+)</baz></foo>`
- Replace by: `<message object="$+{object}">$+{message}</message>`
Add Comment
Please, Sign In to add comment