Quantcast
Channel: Jose Christian » search
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Obsolete 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 Article

Image may be NSFW.
Clik here to view.

Using 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
Browsing latest articles
Browse All 3 View Live




Latest Images