Saturday, January 31, 2015

forward slash in regex expression

Hello all


i need a regex expression in which

1. block multiple occurrence in continuous of / (forward slash)

2. not start and end with /





i have created it is working for second point but not for first one



^[^/]([a-z0-9,-?:().'+"](?:/[a-z,-?:().'+"]+)*)*[^/]$


No comments:

Post a Comment