Achat
2012-01-04 19:20:51 UTC
Hi,
I like to use double quotes in the regex validation via annotations.
Example:
@Assert\Regex(
pattern="/^[^<>')(;\"]*$/",
message="Some error message"
)
But the pattern symfony2 uses is
"/^[^<>')(;\"
Everything after the second double quotes is cut of.
How can I mask the double quotes inside the annotation?
Thanks for help.
I like to use double quotes in the regex validation via annotations.
Example:
@Assert\Regex(
pattern="/^[^<>')(;\"]*$/",
message="Some error message"
)
But the pattern symfony2 uses is
"/^[^<>')(;\"
Everything after the second double quotes is cut of.
How can I mask the double quotes inside the annotation?
Thanks for help.