5
« on: August 28, 2008, 01:06 PM »
To reach some flexibility, I set up several different spellings for the same command, for example
^(vid|vids|video|videos) (.*)
as a regular expression pattern. Then I use $$2 to access the entered text in the actual commands.
Now I've found $$c which takes the clipboard text if $$1 is empty and $$1 otherwise. Unfortunately this is not so helpful in that situation.
Is there a $$c - like expression for $$2, $$3 etc.? If not, how could I rewrite the expression to have the actual user input stored in $$1?
-> What I really need is just another pair of grouping brackets which is not a capturing group.