Paul Cobbaut's blog
2013-07-31
regex
I needed a
regex
to append \index{foo} to any occurrence of **foo** so i wrote
's/\*\*\([^*]*\)\*\*/\*\*\1\*\*\\index{\1}/g'
and it worked the very first time! Yes I feel nerdy today :-) :-)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment