From: Alecs K. <Al...@pe...> - 2004-03-18 17:25:04
|
On Thu, 18 Mar 2004 19:02:41 +0800 "Alecs K." <Al...@pe...> wrote: > On Thu, 18 Mar 2004 18:22:27 +0800 > James He <ic...@us...> wrote: > > > > > > > s/CTRL-([\w+\]])/<code > > > > > class="keystroke">CTRL-$1<\/code>/g; > > > > > > There are also other ctrl keys like CTRL-@, CTRL-[, CTRL-^, etc. > > > So i think we can easily use /CTRL-(.)/ > > They are not identical, because there are 'Ctrl-Break', > > 'Ctrl-PageUp', etc that need to be regarded as keystrokes, too. > > (e.g. in'os_dos.txt') > > /CTRL-(\S+)/ Better /CTRL-(\w+|.)/ , since there may be punctuations (ie. period, etc.) following those ctrl keys. (such as 'CTRL-T,' or 'CTRL-A.') -- Alecs K. |