search for: eqaeq

Displaying 1 result from an estimated 1 matches for "eqaeq".

Did you mean: eeq
2008 Jul 06
2
Regular expressions: bug or misunderstanding?
...but not always: > gsub( "((^|[^E])(EE)*)q", "\\1Eq", "Eq") [1] "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