javascript regular expression search a pattern A(xyz).

Posted by Paul on Stack Overflow See other posts from Stack Overflow or by Paul
Published on 2010-06-12T00:04:57Z Indexed on 2010/06/12 0:12 UTC
Read the original article Hit count: 457

Filed under:
|

I need to find all substrings from a string that starting with a given string following with a left bracket and then any legal literal and then the right bracket. For example, a string is abcd(xyz)efcd(opq), I want to a function that returns "cd(xyz)" and "cd(opq)". I wrote a regular expression, but it returns only cd( and cd(...

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about regex