Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
deletes
- Page 1
Function that deletes url from file with regular expression
Programming
Software Development
15 Years Ago
by codedhands
… newbie in python.Am trying to write a function that
deletes
urls in a file.The function accepts the url to…;noobish".Basically what i want is a function that
deletes
urls from a file based on the url passed to…
Load two characters but it deletes the next one - MIPS
Programming
Software Development
6 Years Ago
by Razvan_1
…). My code works 80% but when i do that it
deletes
the next char where i replace. Like: Bruno it must… print Bruvnop but it only prints Bruvop (it
deletes
the next char from where i replace). My guess is…
Writing one line to a file deletes all other data in file?
Programming
Software Development
13 Years Ago
by snivek
… I do that the line is written back but it
deletes
everything below it in the file. Here is what I…
on load of dataset, deletes added records
Programming
Software Development
10 Years Ago
by jalmeida
… changes record's. However when i start the software it
deletes
the added records on the previous session. the software is…
Jqeury/Javascript Submit Form sometimes deletes when not supposed to
Programming
Web Development
7 Years Ago
by TheFearful
…. The update works great but the delete is weird. It
deletes
just fine, but I ask for a confirmation first before…
Shell script that looks for the two oldest files and deletes them
Programming
Software Development
7 Years Ago
by riahc3
(Ubuntu Server) I have a folder full of files in pairs (one is a log, another is a DB backup) They are basically create/modified at the same time. I need a shell script that detects if the folder has more than 28 or 30 files (always will be a pair), it
deletes
the oldest two. What is the quickest way to do this?
Re: Function that deletes url from file with regular expression
Programming
Software Development
15 Years Ago
by Gribouillis
Did you try [icode]re.compile(r"\b%s\b" % url)[/icode] ? Or probably better [icode]re.compile(r"\b%s\b" % re.escape(url)[/icode] ?
Re: Function that deletes url from file with regular expression
Programming
Software Development
15 Years Ago
by codedhands
@Gribouillis Thanks alot.I have also tried using your own method,although it finds and replaces a string that matches the regular expression.But the problem is that it also replaces the word if found in another word. for example [CODE=python] url="http://www.yahoo.com pattern=re.compile(r'\b%s\b' % re.escape(url)) match=p.sub("…
Re: Function that deletes url from file with regular expression
Programming
Software Development
15 Years Ago
by Gribouillis
You could try to match the url only if it's followed by a white space character or the end of the string, with a lookahead assertion like this [icode]r"\b%s(?=\s|$)" % url[/icode]. Alternatively, you could try to match the url if it's not followed by a slash like this [icode]r"\b%s(?![/])" % url[/icode]
Re: Function that deletes url from file with regular expression
Programming
Software Development
15 Years Ago
by codedhands
Thanks for your quick response,i will try this and get back to you later
Re: Function that deletes url from file with regular expression
Programming
Software Development
15 Years Ago
by codedhands
@Gribouillis Thanks alot,it worked like a charm.you the man
Re: Load two characters but it deletes the next one - MIPS
Programming
Software Development
6 Years Ago
by rproffitt
The lack of comments means I have to decode each line to figure out what it does. Example? Lines 95 to 97 (and others.) Not everyone codes for this so your comments matter more than ever. And in a decade, how will you know what this did? When posting for help on assembly, I think each line or close to each line needs a comment about what it…
Re: Writing one line to a file deletes all other data in file?
Programming
Software Development
13 Years Ago
by daviddoria
You cannot replace a line in a plain text file like this. You'd have to either 1) Read the whole file into memory, replace the line in memory, then rewrite the whole file or 2) Use an actual database (SQL or similar)
Re: on load of dataset, deletes added records
Programming
Software Development
10 Years Ago
by G_Waddell
Hi, Did you specify Update, Delete and InsertCommands for your DataAdapter? [InsertCommand](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.insertcommand(v=vs.110).aspx) [DeleteCommand](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.deletecommand(v=vs.110).aspx) [UpdateCommand](http://…
Re: on load of dataset, deletes added records
Programming
Software Development
10 Years Ago
by jalmeida
yes, i did. Me.Validate() Me.BindingSource1.EndEdit() Me.UCCESCALASDataSet.Militares.NewMilitaresRow() Me.MilitaresTableAdapter.insert(idord, Nom, post, mat, False, cozi, ucc1, lingue, pbispo, mot, trc, False, False, False) Me.UCCESCALASDataSet.AcceptChanges()
Re: on load of dataset, deletes added records
Programming
Software Development
10 Years Ago
by G_Waddell
Ok so with your project open make a change. Then look up that record in the database, has the change carried through?
Re: Jqeury/Javascript Submit Form sometimes deletes when not supposed to
Programming
Web Development
7 Years Ago
by hericles
I would guess it is because you're not actually stopping the button submission by return false; or event.stopPropagation() so your form is still submitting sometimes. All the cancel button does is close the window but you've still clicked the submit button before that. Why it only happens sometimes, I don't know, probably a matter of timing before …
Re: Jqeury/Javascript Submit Form sometimes deletes when not supposed to
Programming
Web Development
7 Years Ago
by TheFearful
I did a preventDefault method and it worked perfectly! Thank you for the input!
Re: Shell script that looks for the two oldest files and deletes them
Programming
Software Development
7 Years Ago
by rproffitt
I think this is two searches and then combine these for your final script. 1. https://www.google.com/search?q=count+number+of+files+in+directory+bash 2. https://www.google.com/search?q=delete+oldest+file+in+directory+bash Actually the second research seems to have something very close to what you were looking for. Try http://stackoverflow.com…
Re: Shell script that looks for the two oldest files and deletes them
Programming
Software Development
7 Years Ago
by riahc3
None of these links really help out with the code.
Re: Shell script that looks for the two oldest files and deletes them
Programming
Software Development
7 Years Ago
by rproffitt
Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question Folk here don't write the code for you. But you can share what you tried and members might comment what's amiss. And that final search looked close enough for you to modify. Question: Did you want folk to write this for you?
Re: MakeFile explanation help!
Programming
Software Development
13 Years Ago
by nezachem
… does each line function? [CODE]
deletes
.obj:
deletes
.c deldir.h cl /c /Zid
deletes
.c [/CODE] The first line tells…to rebuild the target. It says that
deletes
.obj depends on
deletes
.c and
deletes
.h. In other words, if any of…is newer than the target (say, you edited
deletes
.c), the target (
deletes
.obj) must be rebuilt. Otherwise, the target …
Bus ticket reservation system
Programming
Software Development
9 Years Ago
by Kaushalya15
… // cancel Reservations inline void Reservations ::
Deletes
(){ char confirmation ; string nic, nic2…P3.Login() ; P3.
Deletes
() ; cout <<…
MakeFile explanation help!
Programming
Software Development
13 Years Ago
by yongj
… : setdta.c cl /c setdta.c
deletes
.obj:
deletes
.c deldir.h cl /c /Zid
deletes
.c deldir.obj: deldir.c deldir.h… deldir.exe: deldir.obj findfile.obj setdta.obj
deletes
.obj cl /Zid deldir.obj
deletes
.obj findfile.obj setdta.obj [/CODE] So…
Linking Error when making a class template
Programming
Software Development
13 Years Ago
by wiegmale
…parameter object. ArrayList(const ArrayList<ItemType>& copyArrayList); //
Deletes
all allocated memory. ~ArrayList(); // Assigns the parameter object to …ItemType>::ArrayList(const ArrayList& copyArrayList) { CopyList(copyArrayList); } //
Deletes
all allocated memory. template <class ItemType> ArrayList<…
Editing a line in a text file
Programming
Software Development
12 Years Ago
by AW8Dragon
…void DeleteClassmate(); //Search in AddressBook1.txt and
deletes
contact if matched the name void DeleteColleague();… //Search in AddressBook2.txt and
deletes
contact if matched the name void DeleteFriend();… //Search in AddressBook3.txt and
deletes
contact if matched the name void DeleteFamily();…
Deleting Characters Function
Programming
Software Development
17 Years Ago
by aznballerlee
…: [LIST=1] [*][QUOTE] Write a function named
deleteS
that accepts one character pointer as a parameter and returns…50] = "She'll be a massless princess."
deleteS
(msg); cout << msg; // prints he'll …] Here is what I've managed so far: [CODE]void
deleteS
(char* ptr[]) { int*counter; for (counter = ptr;…
Segmentation Fault (Core Dumped)
Programming
Software Development
16 Years Ago
by c++noobie
…else { cout << "\nDelete Which Entry Number? (all
deletes
all entries)\n" + mybook.shortEntry() + "->";… fname) { try { ofstream bookfile; bookfile.open(fname, ios::trunc); //
deletes
previous file and reopens it bookfile << readEntry("…
delete and refresh search results
Programming
Web Development
15 Years Ago
by JeniF
…following function resummarizes and redisplays the results after the user
deletes
one of the search results function submit_Resummarize_Batch_search(deleteOrderId) {…); } } ////////this redisplays the summary results after the users
deletes
a row var BatchTable = document.getElementById('BatchSummary'); var numRows =…
Binary Tree implementation
Programming
Software Development
15 Years Ago
by tones1986
…root of the tree RETURNS: None NOTES: this
deletes
the nodes of the tree ****************************************************************/ template <class…root of the tree RETURNS: None NOTES: this
deletes
the nodes of the tree ****************************************************************/ template <…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC