Quote:
Originally Posted by Jellby
Be careful if you have greedy matching or something like:
Code:
<RemoteButton>
<Name>X-Fi 24-bit Wheel Button</Name>
<MidiSignal>0A 41 44 09 76</MidiSignal>
<USBSignal>02 C1 44 89 76</USBSignal>
<ButtonType>btKeyboardEvent</ButtonType>
<KeyCode>173</KeyCode>
</RemoteButton>
<RemoteButton>
<Name>foo 24-bit Wheel Button</Name>
<MidiSignal>0A 41 44 09 76</MidiSignal>
<USBSignal>02 C1 44 89 76</USBSignal>
<ButtonType>btKeyboardEvent</ButtonType>
<KeyCode>173</KeyCode>
</RemoteButton>
(no X-Fi in the second button)
|
I will have that construction, there will typically be a bunch of X-Fi button defintions, then some other button definitions.
I have not really mastered greedy management - that is why I was concerned about using (.*)
is there a way to write STARTphrase(.*)ENDphrase type searches which makes them nongreedy
this will be useful info for books also for removing redundant SPAN structures