Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 475 results for
exclude-string
- Page 1
Re: Take out punctuation from a string and print it.
Programming
Software Development
14 Years Ago
by snippsat
…`{|}~' >>> [/CODE] In this code i
exclude
[B]
string
.ascii_letters[/B] [CODE]import
string
exclude
=
string
.ascii_letters s = 'test.. hi? for ,,,' punc_text = ''.join…(ch for ch in s if ch not in
exclude
…
Re: exclude comments using Regular Expressions
Programming
Software Development
18 Years Ago
by shuchimuley
…=#0000ff]static[/COLOR] [COLOR=#0000ff]void[/COLOR] Main([COLOR=#0000ff]
string
[/COLOR][] args) { Console.WriteLine("Good"); } } } this shud remove…
Re: Exclude Content From A Div id
Programming
Web Development
12 Years Ago
by blocblue
Is it the only occurence in the source code? If not, is it always the first, second, third,... occurence that you want to remove? Once you can answer those questions, do the same as for the navbar. Find the source, and replace it with an empty
string
.
Re: String array part match problem???
Programming
Web Development
13 Years Ago
by Heinz Stapff
…][/B] once again you where correct about alerting the unaltered
string
but I had forgotten to mention that I added a… pointed out that what I was trying to do would
exclude
names like 'Lloyd' which means that it's up to…
Re: exclude more file extensions
Programming
Web Development
15 Years Ago
by seularts
it says: Warning: strstr() [function.strstr]: needle is not a
string
or an integer in E:\xampp\htdocs\max\count.php on line 9
Re: exclude more file extensions
Programming
Web Development
15 Years Ago
by diafol
…]it says: Warning: strstr() [function.strstr]: needle is not a
string
or an integer in E:\xampp\htdocs\max\count.php…
Find part of a word in a string
Programming
Software Development
11 Years Ago
by Spyderbane
…(My.Computer.Name, "-") Dim style As
String
= computer1(2) Dim
Exclude
() As
String
= {"Walter", "Trevor", "…;Smith"} If
Exclude
.Contains(style, StringComparer.OrdinalIgnoreCase) Then …
Re: Find part of a word in a string
Programming
Software Development
11 Years Ago
by Spyderbane
Thanks, So I modified this to look like; Dim
Exclude
as
String
() = {"Smith", "Walter", "Roberts"}… Dim compname As
String
= My.Computer.Name Dim strex As
String
For i = 0 To
Exclude
.Length - 1 strex =
Exclude
(i) If compname…
Re: Find part of a word in a string
Programming
Software Development
11 Years Ago
by Minimalist
… Object, e As EventArgs) Handles Button1.Click Dim strComNAme As
String
= "DT-WAR-BISMITH" Dim strEx As…
String
= "SMITH" If strComNAme.Contains(strEx) Then Debug.Print(&…
Re: Terminating a String
Programming
Software Development
17 Years Ago
by WaltP
… there a way to ensure user input terminated in a
string
by a punctuation mark (e.g. ‘!’, ‘.’, or …‘?’.) in an array? [/QUOTE] Get the length or the
string
, check the last character with the function [ICODE]ispunct()[/ICODE… and numbers, use [ICODE]alnum()[/ICODE]. This will
exclude
all non-palindrome characters. Last thing, make sure when…
regex matching a string with no single quotes in powershell
Programming
Software Development
4 Years Ago
by Violet_82
… create a script in powershell that finds a
string
in a file and then modifies it but… I'm having issues matching the
string
I want. So, I'm trying to …would say something like
exclude
' at the beginning and at the end of the
string
, but it doesn't…what do I have to do to match a
string
without the quotes? I don't necessarily want the…
help with replacing punctuation in string
Programming
Software Development
12 Years Ago
by Jack5848
… part (atleast for me) is that i have to
exclude
all punctuation ( i, i would come out as 2…lt;intArray.length;i++){ if(intArray[i]>0) { a+=
String
.valueOf(intArray[i]); a+=", "; } } pr_label.setText(…
Terminating a String
Programming
Software Development
18 Years Ago
by boujibabe
… a
string
by a punctuation mark (e.g. ‘!’, ‘.’, or ‘?’.) in an array? And how do i get the program to
exclude
commas…
Terminating a String
Programming
Software Development
17 Years Ago
by xeto
I have a palindrome program.Is there a way to ensure user input terminated in a
string
by a punctuation mark (e.g. ‘!’, ‘.’, or ‘?’.) in an array? And how do i get the program to
exclude
commas?
Invalid Syntax in String Splice?
Programming
Software Development
15 Years Ago
by smerny
… take each line of the file and I want to
exclude
the newline character at the ends of the lines... at…
Trim 4 Characters from Right of String
Programming
Software Development
12 Years Ago
by Stuugie
… using BIDS, I would like to rename the file to
exclude
"-eng" but I'm not sure how to…
“Unique 7 character string†- related issue
Programming
Web Development
12 Years Ago
by thebloodycoon
… that makes it a lot worse. Also, I have to
exclude
some characters from the code[labeled 'problem_characters'] in the code…
Re: Splitting a String using a delimiter
Programming
Software Development
17 Years Ago
by Narue
…] delim The delimiter to split the
string
around Splitter ( const std::
string
& src, const std::
string
& delim ) { reset ( src, delim ); } //! … ) ); // We just copied the last token if ( end == std::
string
::npos ) break; //
Exclude
the delimiter in the next search start = end + delim…
Re: Terminating a String
Programming
Software Development
18 Years Ago
by boujibabe
…;& isalpha(i) && isalpha(j) )){ if(tolower (
string
[i]) != tolower(
string
[j])) { ispalindrome = 0; } i++; j--; } if(ispalindrome) { printf…("%s is a palindrome!\n",
string
); } else { printf(" %s is not a palindrome\n&…
Re: Terminating a String
Programming
Software Development
18 Years Ago
by WaltP
…the input portion of the code. Input a
string
. Output the
string
When the
string
input and output are correct, move on, but… #2: Add the test whether the last character of the
string
is correct. If not, do what you think you need…on, but not until! #3: Copy the input into another
string
character by character. Copy [I]only[/I] the characters you…
Re: help with replacing punctuation in string
Programming
Software Development
12 Years Ago
by JamesCherrill
That piece of code looks through the
string
*str* and replaces everything that's not a letter with &… letter. You need to do the same thing to *your*
string
after you get it from the user but before you…,but I guess you will know which variable has the
string
that you're going to analyse, and where the analysis…
Re: regex matching a string with no single quotes in powershell
Programming
Software Development
4 Years Ago
by rproffitt
… or escapes to have capture groups work in the replacement
string
There may be more but my answer is yes that…
Re: how to merge elements of array into single string?
Programming
Software Development
12 Years Ago
by deceptikon
… range. I find your explanation hilarous given that include and
exclude
are opposites. ;)
Re: Terminating a String
Programming
Software Development
18 Years Ago
by ~s.o.s~
… calculations in this part of the code. if(tolower (
string
[i]) != tolower(
string
[j])) { ispalindrome = 0; } If the condition is not satisfied…, there is no way the
string
is going to be palindrome, so why continue with the…
Re: Terminating a String
Programming
Software Development
18 Years Ago
by boujibabe
…> #include <ctype.h> #include <
string
.h> [COLOR="red"]void remove_newline (char*… True*/ int i=0; int j=0; char
string
[80]; /* get the user input */ printf("Enter… a
string
no more than 80 characters \n"); fgets(…
Re: How to compare string word by word?
Programming
Software Development
15 Years Ago
by sknake
Define what separates a word, and what should be included. Example: Include: !@#$%^&*().-+~`
Exclude
: Tab Space FYI -- You're probably going to regret doing this :)
Re: Possible Combination of String Excluding the palindromes
Programming
Software Development
12 Years Ago
by soham.m17
… C to generate all possible combinations but this doesn't
exclude
the palindromes: #include <stdio.h> inline void printTheArray…
Re: Terminating a String
Programming
Software Development
18 Years Ago
by ~s.o.s~
…()[/I] [*]Remove the trailing newline at the end of the
string
accepted from the user. (must do, check my function [I…]remove_newline()[/I]) [*]Check if the last character of the
string
is ! or ? by using something like:[/LIST][code=c] // accept…
Re: Terminating a String
Programming
Software Development
18 Years Ago
by ~s.o.s~
… seems like you are confused between the requirement for the
string
to end in puctuation marks with teh concept of palindrome… puctuations. It only and only cares about characters. Terminating the
string
with punctutations is just a requirement of hte program, dont…
Re: Terminating a String
Programming
Software Development
18 Years Ago
by ~s.o.s~
…=0; /* get the user input */ do{ printf("Enter a
string
no more than 80 characters "); fgets(palindrome,80,stdin… it in main // with the argument palindrome. Better name the
string
variable // palindrome to "input" or "my_string"…
1
2
3
8
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC