|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: Mon Jan 12, 2009 3:45 pm
single space |
how do you match a single space? or two spaces?
^ (*)
^ %x(*)
^ %x%s(*)
That's all I know. I don't know how to match a single space like ? matches a single character. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jan 12, 2009 9:54 pm |
Use the spacebar. If that doesn't work, use the %s wildcard. It will match more than one space, of course, so if it's absolutely imperative that this trigger only work on single spaces you will want to surround that with parentheses and use the %len() to check before doing other things.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Leitia Adept
Joined: 04 May 2007 Posts: 292 Location: Boston
|
Posted: Tue Jan 13, 2009 5:06 pm |
regex \s works for one space too, it is sometimes nice where you want to see a few spaces (\s\s\s) in a long match
You still have to check len to limit repetition though.
\s\s\s matches those spaces in the pipes in
and would match
(the pipes just show the matches in the example). That can be a problem without anchors, characters, or @len() |
|
|
|
|
|