Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. var s = "07:05:45PM";
  2. var meridian = s.match("/[AM PM]/i"); //matches AM or PM in s
  3.  
  4. console.log(meridian);
  5. // Expecting output as [PM] but actual output is null
Add Comment
Please, Sign In to add comment