Posted By

superjose on 07/04/18


Tagged


Versions (?)

Match anything between "reply" including parenthesis


 / Published in: Regular Expression
 

This will match anything between the world reply and parenthesis

  1. (?<=reply\()(.*)(?=\)\))
  2.  
  3. // This will match reply() as well.
  4. reply\((?<=reply\()(.*)(?=\)\))\)
  5.  
  6. // If you do replace All, and replace it with $1 then you will have
  7. // the inner contents

Report this snippet  

You need to login to post a comment.