T
Thiago Massa
[Note: parts of this message were removed to make it a legal post.]
Is there any way to a regexp allow any character but the comma?
My regexp is getting ugly like /(\x2E|\x3A|\x27|\x28|\x29|\x2D|\x21|\x2B)*/
and so on(i ommited the real one for the love of god)
I'm even thinking about implementing it myself like
if not comma
pass
else
not_pass
end
isn't there a way to extend the way ruby deals with regexp and make
something like "/everythingbutnotcomma" mean what i want?
I'm sorry of my lack of knowledge about regexps... I'm trying to really
learn it once and for all.
Thanks in advance.
Is there any way to a regexp allow any character but the comma?
My regexp is getting ugly like /(\x2E|\x3A|\x27|\x28|\x29|\x2D|\x21|\x2B)*/
and so on(i ommited the real one for the love of god)
I'm even thinking about implementing it myself like
if not comma
pass
else
not_pass
end
isn't there a way to extend the way ruby deals with regexp and make
something like "/everythingbutnotcomma" mean what i want?
I'm sorry of my lack of knowledge about regexps... I'm trying to really
learn it once and for all.
Thanks in advance.