In program I you are checking if the regular expression /[abc][hij]/ matches the string " aj", which it does.
In program II you are checking if regular expression / aj/ matches the string "[abc][hij]", which it does not.
In reply to Re: same program different output
by MaxKlokan
in thread same program different output
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |