Tagged Questions
4
votes
3answers
118 views
Delete XML node containing certain element
I want to remove all Placemarks from a KML file that contain the element <tessellate>. The following block should be wholly removed:
<Placemark>
...
2
votes
2answers
877 views
What is the python equivalent of grep -v?
I like grep -v. I use it all the time. But I am also doing some text processing in python, and there is one crucial thing that I lack.
Usually, I use grep -v to take extraneous stuff out of text.
...
2
votes
2answers
451 views
Arithmetic operations in regex
I am using gedit regex plugin (Python style regex). I would like to do some arithmetic operation on a backreference to a group.
For example:
PART 1 DATA MODELS Chapter
2 Entity-Relationship Model ...
0
votes
1answer
140 views
python regex equivalent of kwrite [ ]+ and [0-9]+
I've never been good at regular expressions. When ever I read about them, I sort of get a headache, get up from my desk, and forget what I'm doing. Attention difficulties.
But when I finally started ...
-1
votes
1answer
45 views
Doing regex in python [closed]
I had a directory "/pcap_test" which contains several log files. Each file has a pattern like:
Pkt: 1 (358 bytes), LIFE: 1, App: itunes (INTO), State: TERMINATED, Stack: /ETH/IP/UDP/itunes, Error: ...