regex - Match "de" after abc in regular expression? -


i have string "abb", , want match "b" after "a".

  1. is possible?
  2. if possible, how this?

p.s.: know use "a(b)" match "ab" , extract "b" in group. using in text editor, cannot use group technique.

you can use positive look-behind assertion that:

(?<=a)b 

this match b without matching a. (?<=a) makes sure b preceded a.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -