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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -