objective c - I need perticular regular expression for my data check -
i new in regular expression. have allow users input type of data.
- the string must start w or w.
- the string must have minimum 2 "/".
- the string must have character or number after /.
- after second / there should minimum 1 number.
please me out. stucking 2-3 hours.
how about:
^(?i)w[a-z0-9]*(?:/[a-z0-9]+)+/(?=.*\d+)[a-z0-9]*$
if want digits after last slash:
^(?i)w[a-z0-9]*(?:/[a-z0-9]+)+/\d+$
Comments
Post a Comment