In my Python application, I need to write a regular expression that matches a C++ for or while loop that has been terminated with a semi-colon (;). For example, it should ...
I'm suppose to capture everything inside a tag and the next lines after it, but it's suppose to stop the next time it meets a bracket. What am i doing wrong?
I'm interested how can be implemented recursive regexp matching in Python (I've not found any examples :( ). For example how would one write expression which matches "bracket balanced" string like ...
I am using Python 2.6.4.
I have a series of select statements in a text file and I need to extract the field names from each select query. This would be easy ...
http://examples.oreilly.com/9780735615366/
I actually want to be able to have all these files in my disk.
as u can see there are many folders each with different type of files.
and u cannot ...
Hi all I'm new to Python and I'm trying out regex (import re) to extract the info I want from a log file. Take it easy on me please.
UPDATE: Added the ...
In a program I'm writing i have python use the re.search() function to find matches in a block of text and print the results. However, once the program finds the first ...
I've tried different ideas for this but haven't been successful yet. Hence this post.
Some background: I am trying to decipher a Makefile that might include variables from a separate file. I've ...
possibly quite big, and I have to substitute in text files accordingly to that dictionary in a quite big directory structure.
I didn't find anything ...
I'm trying to recursively replace a string with another string in Python. I'm aware of this thread, but coming from other languages I'm amazed — is it really that hard? ...