B
Bryan Ax
My regular expression inadequacies are surfacing again...
I'm trying to write a simple regex to match either the character S, or
the character O, or the phrase SP (but not the phrase SO, or SP, or any
other phrase).
I've tried simply:
[SO]|SP
but that still seems to match the phrase 'SO'
What I really need is something that says, the above, but don't allow
'SO'.
I feel so silly - I thought I was going to get this one done very
quickly...
Any help appreciated,
Bryan
I'm trying to write a simple regex to match either the character S, or
the character O, or the phrase SP (but not the phrase SO, or SP, or any
other phrase).
I've tried simply:
[SO]|SP
but that still seems to match the phrase 'SO'
What I really need is something that says, the above, but don't allow
'SO'.
I feel so silly - I thought I was going to get this one done very
quickly...
Any help appreciated,
Bryan