KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have this text txt = "Local residents o1__have called g__in o22__with reports..."; in which I need to get the list of numbers between each o and __ If I do txt.match(/o([0-9]+)__/g); I will get ["o1__", "o22__"] But I'd like to have ["1", "22"] How can I do that ?
Tags (comma-separated)
Save Edits
Cancel