View Single Post
Old 09-28-2012, 04:26 AM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by Jellby View Post
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
cybmole is offline   Reply With Quote