javascript regex to extract a word from middle of 6 sentence

Posted by Kaartz on Stack Overflow See other posts from Stack Overflow or by Kaartz
Published on 2010-04-23T16:07:59Z Indexed on 2010/04/23 16:13 UTC
Read the original article Hit count: 183

Filed under:
|
|

i have a string like following:

Assigned to ram on 2010-04-22 12:30:13.0

i need to extract the third word (ram). I tried the below regex, its not working.

/\s[a-zA-Z]*\s/

any help to fix this would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex