The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"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