Book a Demo

Author Topic: Use of regular expressions  (Read 3010 times)

pebran

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Use of regular expressions
« on: December 12, 2004, 05:49:34 am »
From time to time I have the need to make an attribute conform to a specific pattern, i.e. a mail address or a phone number.
I’ve been looking for a way to do this using OCL in a regular expression like way but that doesn’t seem feasible. Is there any canon way to do this?

Regards,
Pebran

thomaskilian

  • Guest
Re: Use of regular expressions
« Reply #1 on: December 13, 2004, 12:57:11 am »
Not really shure what you mean by this question but if you need some kind of assert you're free to bind a constraint to the attribute.