i am newbie to regex in javascript and i got stuck in using regex in javascript.
I have two scenerio
1) I have a string like aaa/+/bbb/+
, i want to match this string with strings aaa/1/bbb/hello123
and aaa/1/bbb/
using regex and both should return true
. If i pass aaa/1/bbb then it should give false
2) If i have string aaa/# then it should match all the above strings and returmn true
Can any one help me?