Among the Action options when Perl pattern is used as the Find type are to Send variable N to subfilter
where N = 1 to 9 in the Actions dropdown.
This is the simplest method to use where the required subfilter is Capture text to a variable.
Here's an example:
Code: Select all
Restrict to each line in turn
|
|--Restrict to lines matching [<div type="book"]
| | [ ] Include line numbers
| | [ ] Include filename
| | [X] Match case
| | [ ] Count matches
| | Pattern type: 0
| | [X] UTF8 Support
| | [ ] Ignore empty matches
| | Context before: 0
| | Context after: 0
| |
| +--Perl pattern [<div type="book" osisID="(.+)"] and Send variable 1 to subfilter
| | [X] Match case
| | [ ] Whole words only
| | [ ] Case sensitive replace
| | [ ] Prompt on replace
| | [ ] Skip prompt if identical
| | [ ] First only
| | [ ] Extract matches
| | Maximum text buffer size 4096
| | [ ] Maximum match (greedy)
| | [ ] Allow comments
| | [ ] '.' matches newline
| | [X] UTF-8 Support
| |
| +--Capture text to variable @book
| Reset: 0
| Break:
I hope you like this tip.