What does it matches h(?<=a)b
Posted: Sun May 20, 2007 11:36 am
According to my knowledge the regex should match the text 'hab'
as
It matches teh character 'h' naturally.
then it starts looking behind to find an character 'a'
If it finds the character 'a' then it goes forward and matches the next character that should be 'b'[/syntax]
Code: Select all
h(?<=a)bas
It matches teh character 'h' naturally.
then it starts looking behind to find an character 'a'
If it finds the character 'a' then it goes forward and matches the next character that should be 'b'[/syntax]