regex - Regular expression to get a constant string wrapped with square brackets or quotes -


i need create regular expression find text using javascript or notepad++.

i looking text contains (delete) wrapped square brackets or quotes shown in below 2 statements.

  1. blah blah [manikv (delete) 4916258] blah blah
  2. blah blah 'morl20 (delete) 180977' blah blah

expected results:

  1. manikv (delete) 4916258
  2. morl20 (delete) 180977

thanks time , in advance!

you can use regex:

.*?[\['](.*?\(delete\).*?)[\]'].* 

working demo

enter image description here


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -