"Regular expression problem..."
Hi everbody,
I try to use the Mapping operator to replace some attribute values by others.
Possible values are: "disease1", "disiease2", "disease3" and "Healthy".
I want to replace everything that is NOT "Healthy" by "Sick" and try a regex with negative lookahead like this: ^(?!Healthy).
Unfortunately, nothing is replaced :-(
What am I doing wrong ? When I test the regex at http://www.regexplanet.com/simple/index.html it seems to work.
Thanks,
Axel
I try to use the Mapping operator to replace some attribute values by others.
Possible values are: "disease1", "disiease2", "disease3" and "Healthy".
I want to replace everything that is NOT "Healthy" by "Sick" and try a regex with negative lookahead like this: ^(?!Healthy).
Unfortunately, nothing is replaced :-(
What am I doing wrong ? When I test the regex at http://www.regexplanet.com/simple/index.html it seems to work.
Thanks,
Axel
Tagged:
0
Answers
I think you needed a bit more, like this... Regex can turn normal humans to wobbly puddings, so I use RegexBuddy, and commend it to all but the most pointy-headed ascetics.
Pip Pip
( Exit Uncle Beastly stage left...)
If the possible values are restricted to those mentioned by axel, then use this one: regards,
steffen
I apologize ...
but I believe Seneca said
"Nullum magnum ingenium sine mixtura dementiae fuit"
that was exactly what I was looking for. I can only say:
Plures gratiae pro vestri succurro
Axel