0

zk constraint

asked 2012-10-23 20:39:00 +0800

iank gravatar image iank
42 4

updated 2012-10-23 20:39:16 +0800

Hi there,

Just wondering how I could create a constraint for a textbox which allows anything except:

";<>

The wiki page doesn't explain very well.

Thanks!

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2012-10-24 22:03:48 +0800

iank gravatar image iank
42 4

Anyone?

link publish delete flag offensive edit

answered 2012-10-25 08:52:07 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

Should'nt you barely use regular expressions to exclude the characters?

link publish delete flag offensive edit

answered 2012-10-26 19:39:46 +0800

iank gravatar image iank
42 4

I can't really understand the examples, so I was hoping someone could show me how

link publish delete flag offensive edit

answered 2012-10-26 19:40:53 +0800

iank gravatar image iank
42 4

"/.+@.+\.+/"

doesn't make any sense. is the +@ for allowing @? what's the period for?

Thanks

link publish delete flag offensive edit

answered 2012-10-29 12:13:26 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

I have no solution "on the fly", but when I needed something about regexp I had a look at http://www.regular-expressions.info/, a very useful source of information.
Regexp are very powerful, is just a matter of learning how to read/write them... ;)
BTW, looking at http://www.regular-expressions.info/reference.html, I'd try something like:

[^";<>]

Good luck,
S

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-10-23 20:39:00 +0800

Seen: 150 times

Last updated: Oct 29 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More