Last week I stumbled on a nice console regex helper. It’s not that I’m bad at regex but switching between sed, vim, python, perl regex trips me up a bit sometimes.

Go ahead and check it out for yourself

sudo aptitude install txt2regex

<br /> [.]quit [0]reset [*]color [/]programs ^txt2regex$

!! not supported

RegEx perl :

RegEx php :

RegEx postgres:

RegEx python :

RegEx sed :

RegEx vim :


start to match:

1) on the line beginning

2) in any part of the line