This discussion is archived
3 Replies Latest reply: Jun 17, 2009 7:37 AM by 807588 RSS

How to include /(Forward slash) in my regular expression

807588 Newbie
Currently Being Moderated
Hai All,

I am having a regular expression which should accept only A-Z,0-9, _(underscore) and .(period) .

<property name="patterns" value="[A-Z0-9\\._]*" />
Now i need to add /(Forward slash) to this expression.
<property name="patterns" value="[A-Z0-9\\._/]*" />

But when i add it it is accepting both Foward slash and Backward slash.

Can someone guide me such that it accepts only A-Z, 0-9, Underscore, period and a Forward slash(/).

Thx in advance..