Java Regex and json -
i have following regex in place validate name field in program , works fine
^[a-za-z\\d\\s_.@\\-]*$ {"name":"jfhgjhf"}
i want add embedded json element passing in part of json (i using schema form) want taskdetails element accept same charachters name charachters {[/:="
i tried following regex no joy
^[a-za-z\\d\\s_.@\\-{\\]\\[}/\\\\/\\/ ':=]*$ {"name":"jfhgjhf","taskdetails":"{\"ids\":[{\"id\":\"jhgjghjghfjf\"}]}"} any on appreciated
thanks damien
this work
^[a-za-z\d\s_.@{\\}\/ ':=",\[\]-]*$ - must final char because can recognize example a-z
Comments
Post a Comment