This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Specifying the characters that cannot be present using PATTERN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Specifying the characters that cannot be present using PATTERN" Watch "Specifying the characters that cannot be present using PATTERN" New topic
Author

Specifying the characters that cannot be present using PATTERN

Abhi Venu
Ranch Hand

Joined: Jul 09, 2009
Posts: 73
i can use pattern to specify some of the allowable characters for a field . How can i use the same pattern to specify the characters that are not allowed in a field.can any give a small example. <xs:pattern value="([^a-zA-Z0-9-()\\ /.<_])*"/> will this restrict the usage of these characters in a field


A table, a chair, a bowl of fruit and a violin; what else does a man need to be happy?:Einstein
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10441
    
176

Abhi Venu wrote:<xs:pattern value="([^a-zA-Z0-9-()\\ /.<_])*"/> will this restrict the usage of these characters in a field


Did you try it?

[My Blog] [JavaRanch Journal]
Abhi Venu
Ranch Hand

Joined: Jul 09, 2009
Posts: 73
No I haven't I will try it now.Thank You
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Specifying the characters that cannot be present using PATTERN
 
It's not a secret anymore!