Stuff I Need to Remember – VIM
Search and place stuff in groups… :%s/^\([^ ]*\)£\([^ ]*\)¶.*$/\2 \1/ % = all lines s = Search ^ = from the start \([^ ]*\) = Make a set (set 1)... £ = ... until you come across this character \([^...
View ArticleObsolete New Page Search – Python
Obsolete stuff that will tell you if there is a “Next” page by looking for the string “next” in the HTML. #!/usr/bin/python # go to next page import urllib,re rawData="rawHtml.txt"...
View ArticleUsing regex search and grouping – Python
For some silly reason we have a string with the following information Jose Christian, tel: 07429225555, id: JC020479 We can use the regular expressions module to find and group the relevant...
View Article
More Pages to Explore .....