Powerfind Q - Contains a semicolon in dialog
Posted: 2015-10-24 10:31:16
Hi,
I've spent an hour with the manual examples and read the Capture threads on the forum, but no luck so far figuring out my problem.
Simply put, I want to find all dialog that contains a semicolon. Should be simple but so far isn't.
A -- "This is dialog."
B -- "This is dialog also; but it contains a semicolon."
I want to make a PowerFind expression that selects B but not A. (I don't need replace, because I'll be moving through them one by one to decide how the replacement will be done).
So far, I successfully can find A using PowerFind bubble expression that says (in bubbles of course)
“ (AnyTextCharacter) (1+Shortest) ”
where the open and close double quotes are part of the expression also.
But I can't figure out how to get these selected only when they are B, the one that contains a semicolon.
I've tried various attempts inserting the semicolon, with Capture, and with Preceded and Followed by, and with CharacterInSet -- no joy.
It seems like CharacterInSet should be the simplest -- In other words, I want my existing Capture or Found to only be a valid result if it contains a semicolon. So the 'Found' would be the set, and it should contain a semicolon.
But I can't figure out how to do this.
Any help and further explanation appreciated. CharacterInSet only had two brief mentions in the manual and no examples, so I'm in the dark about that.
WF
I've spent an hour with the manual examples and read the Capture threads on the forum, but no luck so far figuring out my problem.
Simply put, I want to find all dialog that contains a semicolon. Should be simple but so far isn't.
A -- "This is dialog."
B -- "This is dialog also; but it contains a semicolon."
I want to make a PowerFind expression that selects B but not A. (I don't need replace, because I'll be moving through them one by one to decide how the replacement will be done).
So far, I successfully can find A using PowerFind bubble expression that says (in bubbles of course)
“ (AnyTextCharacter) (1+Shortest) ”
where the open and close double quotes are part of the expression also.
But I can't figure out how to get these selected only when they are B, the one that contains a semicolon.
I've tried various attempts inserting the semicolon, with Capture, and with Preceded and Followed by, and with CharacterInSet -- no joy.
It seems like CharacterInSet should be the simplest -- In other words, I want my existing Capture or Found to only be a valid result if it contains a semicolon. So the 'Found' would be the set, and it should contain a semicolon.
But I can't figure out how to do this.
Any help and further explanation appreciated. CharacterInSet only had two brief mentions in the manual and no examples, so I'm in the dark about that.
WF