So I have a string "SmartUserWantsToLive" I want to generate from it or any such string with capital letters strings like "Smart User Wants To Live". How do I do this?
Hello All,
I have a string as follows - MFMFMF
now i want to change this string to FMFMFM how to do this , help needed pls
i had tried
select replace(replace('mfmfmf','M','F'),'F','M')
this gives me result - MMMMMM
which i donot what
i want the output to be FMFMFM
Need your help
D.Mahesh
What I want to do is check an array of strings against my search string and get the corresponding key so I can store it. Is there a magical way of doing this with Perl, or am I doomed to using a loop? If so, what is the most efficient way to do this?
I'm relatively new to Perl (I've only written 2 other scripts), so I don't know a lot of the magic yet, just that Perl is magic =D
Reference Array: (1 = 'Canon', 2 = 'HP', 3 = 'Sony')
Search String: Sony's Cyber-shot DSC-S600
End Result: 3
Hi,
I have a string literal as follows:
string filename = @"C:\myfolder\myfile.jpg";
When I use File.Exists(filename) it works most of the time but sometimes I get an error saying the following file doesn't exist:
C:myfoldermyfile.jpg
Something seems to strip the backslashes out of the filename. This code is sometimes accessed via an ajax request.
Does anyone know why/how this could be happening?
Hi,
I am not able to figure out which drivers should I use. Even I don't know what I have.
When I am trying to make the connection string through the .udl file it only shows SYbase ASE OleDB Provider
while in install folder I can see in driver list Syabse Ase ODBC driver but in connection string it is unable to pick up the driver, here I used Driver = (Sybase ASE ODBC Driver)
What should I go for?
Thanks
Hi,
I have an EF project which has embedded connection details.
Then when I use this project from a client library I get told to copy the config file across, which includes the connection details.
What are the rules re which connection string would be used here? i.e. does the database connection string in the client project override any connection strings in the EF library project?
Whatever string is given I have to see if there is exactly one space after and before =, If it is more than one space in either side I have to reduce that to one and if there is none, I have to insert one.
How should I do that ? String can contain anything.
Thanks
I want to capture everything up to (not including) a # sign in a string. The # character may or may not be present (if it's not present, the whole string should be captured).
What would the RegEx and C# code for this by? I've tried: ([^#]+)(?:#) but it doesn't seem to work.
JAVA
Hello,
I have a TextArea with enter seperated values:
For Example:
Value1
Value2
Value3
Value4
Value5
Is there a fast way to put them in a String array
String[] newStringArray = ???
I have a TextArea with enter seperated values:
For Example:
Value1
Value2
Value3
Value4
Value5
Is there a fast way to put them in a String array
String[] newStringArray = ???
I have a string in lua.
It's a bunch of [a-zA-Z0-9]+ separated by a number (1 or more) spaces.
How do I take the string and split it into a table of strings?
Thanks!
This code give me an error:
string rus = "," + db_user.Anagrafica_Dipendente.ID_Dipendente + ",";
int i = db.CBR_User.Count(p => p.RiceviMail == true && ("," + p.Dipe + ",").Contains(rus))
p.Dipe is a string
how can i do that?
thanks
I have the date format string dd-mm-yy. Please can you tell me how to add hours and minutes to the string (i.e 13-03-2010.21.03) ....
DateTime.Today.ToString("dd-mm-yy") ?
If I have a string that looks like either
./A/B/c.d
OR
.\A\B\c.d
How do I get just the "./A/B/" part? The direction of the slashes can be the same as they are passed.
This problem kinda boils down to: How do I get the last of a specific character in a string?
Basically, I want the path of a file without the file part of it.
What methods are there to get JPQL to match similar strings?
By similar I mean:
Contains: search string is found within the string of the matches entity
Case-insensitive
Small mispellings: e.g. "arow" matches "arrow"
I suspect the first two will be easy, however, I would appreciate help with the last one
Thank you
I want to create a TreeMap in Java with a custom sort order. The sorted keys which are string need to be sorted according to the second character. The values are also string.
Sample map:
Za,FOO
Ab,Bar
Given a url, and a query string, how can I get the url resulting from the combination of the query string with the url?
I'm looking for functionality similar to .htaccess's qsa. I realize this would be fairly trivial to implement completely by hand, however are there built-in functions that deal with query strings which could either simplify or completely solve this?
Example input/result sets:
Url="http://www.example.com/index.php/page?a=1"
QS ="?b=2"
Result="http://www.example.com/index.php/page?a=1&b=2"
-
Url="page.php"
QS ="?b=2"
Result="page.php?b=2"
How can I assign this string in a Java String?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
thanks
Simple example: we have string "Some sample string Of Text". And I want to filter out all stop words (i.e. "some" and "of") but I don't want to change letter case of other words which should be retained.
If letter case was unimportant I would do this:
str.toLowerCase().replaceAll ("a|the|of|some|any", "");
Is there an "ignore case" solution with regular expressions in java?
Hi,
How can i extricate substring from string using powershell ?
I have this string: "-----start-------Hello World------end-------", i have to the hello world.
What is the best way to do that?
Thanks!
@string = "Sometimes some stupid people say some stupid words"
@string.enclose_in_brackets("some") # => "Sometimes {some} stupid people say {some} stupid words"
How should the method enclose_in_brackets look ? Please keep in mind, I want only enclose whole words, (I don't want "{Some}times {some} stupid....", the "sometimes" word should be left unchanged
How do I insert a subscript charachter in a string in C#? I have nor problems appending a superscript 2 in the same string using char.ConvertFromUtf32(178);, but I struggle with finding a similar solution for the subscripted text. Actually, I'm struggling with finding ANY solution at all to this rather embarrassing issue. :)
Looking at the information under the heading "Precision can be omitted or be any of:".
The example: printf("%.*s", 3, "abcdef"); works, outputting:abc (truncating the rest of the string.)
Now, I would like to have a string with multiple parameters formatted (truncated):
printf("%.*s, %.*s", 3, 3, "abcdef", "xyz123");
but the program crashes.
What is the correct syntax?
Thank You.