[wxPython] Selected text in wxStyledtext

Hi,

a small quick one. How do I get a selected text, “selected” by double-clicking on a word in wxStyled?

Also, how does one add $ as a possible word name so that double-clicking on AB$KJ would select the whole word and not just AB or KJ?

Thanks in advance