Displaying 1 result from an estimated 1 matches for "qeq".
Did you mean:
eq
2008 Jul 06
2
Regular expressions: bug or misunderstanding?
...quot;Eq"
> gsub( "((^|[^E])(EE)*)q", "\\1Eq", "EEq")
[1] "EEEq"
> gsub( "((^|[^E])(EE)*)q", "\\1Eq", "qaq")
[1] "EqaEq"
> gsub( "((^|[^E])(EE)*)q", "\\1Eq", "qq")
[1] "qEq"
Notice that in the final example, the first quote doesn't get escaped.
Why not????
Duncan Murdoch