View Single Post
Old 05-20-2013, 01:20 AM   #1
macnab69
Zealot
macnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toysmacnab69 shares his or her toys
 
Posts: 129
Karma: 5754
Join Date: Jan 2012
Location: South Africa
Device: Kindle 4
Regex to insert word at beginning of a line

Want to change xxx xxxx, The to The xxx xxxx.

In the replace section, how do I specify at the beginning of the line?

Python reference speaks of ^ and \B, but how do I use them to stop them being appended to the end of the line?

If I make the replace regex \BThe or \B The it just appends at the end of the line. Somehow I am missing telling it: This is an escape sequence, not normal characters.

I always thought that if you want a \ you needed to use \\.
macnab69 is offline   Reply With Quote