|
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Sat Feb 25, 2006 8:36 pm
Trigger help |
H:118 M:118 <eb>
that is what it is normally, but the eb can be -b, e-, eb p, -b p, and so forth.
I've got, H:(\d+) M:(\d+) <([a-z]+)> which of course will catch eb, e, or b, but i'm not sure if it will catch the others? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Feb 26, 2006 6:19 am |
If I understand regex correctly, a-z will not catch dashes or spaces. Need to add those in at the end of the range ([a-z- ]), or change a-z to specific letters you want to capture.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Strakc Apprentice
Joined: 31 Jan 2006 Posts: 106 Location: Virginia Beach, Virginia
|
Posted: Sun Feb 26, 2006 6:45 am |
not all sure what all letters it can display i dont remember, but to add them just ([a-z- -]) or something and it should work?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Feb 26, 2006 2:11 pm |
based on my limited understanding of REGEX, yes. The equivalent in zscript is as I noted.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Mon Feb 27, 2006 3:17 pm |
The regex pattern I would use for a prompt like this:
Code: |
H\:(\d+) M\:(\d+) \<([ebp \-]+)\> |
If there are other letters besides e, b, and p that can show up in your prompt flags, just add them. |
|
|
|
|
|