anio
anio

Reputation: 9161

emacs regex help

Okay, this should be super easy, I must be doing something dumb.

I've got this:

double foo3;

I want to replace it with:

archiver & BOOST_SERIALIZATION(foo3);

I do this:

M-x query-replace-regxp RET double \(a-z0-9+\) RET archiver & BOOST_SERIALIZATION(\1)

Emacs says 0 matches.

Upvotes: 0

Views: 81

Answers (1)

Jürgen Hötzel
Jürgen Hötzel

Reputation: 19727

You mist the List Operator:

double \([a-z0-9]+\)

Upvotes: 1

Related Questions