*I know that this may seem like a re-occuring question, but I can't seem to find anyone who has asked this question in a very succinct manner. They always seem to beat around the bush, instead of clearly expressing themself.* **Here is the situation:** I have an application called S.M.A.R.T. In this application it processes data(duh!). It stores data in both single and multi-dimensional arrays. I desire to store these data-filled arrays in a file, along with other elementary data types. And the file that I want to store it in, must end with the extension .smproj (as an example …

Member Avatar
Member Avatar
+1 forum 4

I am learning re module for practice I have taken an export of my phone addressbook which is a comma seperated text file, containing "First Name","Mobile Phone","Home Phone","Company","E-mail Address","Company Main Phone","Business Fax","Birthday" as of now I am more interested in First name , mobile phone number and email address. in my phone book I have first names with characters a-z in small caps as well as capitals with - and some also containig number or special characters so almost everything is included. so I build a search pattern like this `namePattern = re.compile('[a-zA-Z _@-]+')` this works fine but it also …

Member Avatar
Member Avatar
+0 forum 6

hi friends. i want to try the fee collection system in vb.net. my need is that a reminder remind me the name of defaulters on 20th date of every month. it check the defaulters from database. please hlep me frinds how can i do this.

Member Avatar
+0 forum 0

Hello I am trying to build a function that i can use in to search for an object or item from its name, Here is what I have in **sfind.py** def findobj(searchTxt,items): """ This function will help you find an object or an item from list of items passed to it. """ print items import re for each in items: print each result = re.search(searchTxt, each) #returns None if search fails if result: print each #and do whatever you need... return True else: print("Not found") but every time i enter something to seach I get **Not found.** try: reload(sfind) sfind.findobj("lambert1",['lambert1','lambert2','grey']) …

Member Avatar
Member Avatar
+0 forum 5

Hi everyone, Just wondering if anyone could help. At the minute I need to check a command line for the parameter "--date=something", I've been using the re module with python like this cmd = "python myapp.py --name=stephen --date=20120323 --test=testthis" found = re.split (r"--date.*", cmd) print found but this prints the entire string if it matches, or "None" if not found - how would I get it to print the "--date=20120323" part and nothing else? Or is this not possible? Many thanks in advance, Stephen

Member Avatar
Member Avatar
+0 forum 1

The End.