10 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ogsirus

Hi guys, I have written a program which currently accumalates different pairs and their frequency from an excel spreadsheet. (1280 pairs) Want I want to achieve is from the top 20/30 pairs, if I can find pairs that link e.g. Pair 1 [1,33] and Pair 100 [1,232] so i would …

Member Avatar for ogsirus
0
258
Member Avatar for nikk8a

Hello, I have a string which consists of tokens enclosed in square brackets []. I need to identify these and process the string to replace them with some other derived values. I am unable to get list of tokens via Pattern matching. Below is my code snippet. String str = …

Member Avatar for nikk8a
0
239
Member Avatar for aplh_ucsc

This method read the Database and Returns the Username and Password. tblPassword has only one user name and a password. using (SqlConnection dataConnection = new SqlConnection("Data Source=isukoon-pc\\sqlexpress;Initial Catalog=AdsManager;Integrated Security=True")) using (SqlCommand dataCommand = new SqlCommand("select username from tblPassword", dataConnection)) using (SqlCommand data2Command = new SqlCommand("select password from tblPassword", dataConnection)) { …

Member Avatar for aplh_ucsc
0
235
Member Avatar for blueguy777

Array1 = array(000,400,000,500) Array2 = array(300,400,450,500) if the values of Array1 matches with Array2 values then the matching values of Array2 should be replaced with 000 i.e. Array2 = array(300,000,450,000) somebody help me. thanks in advance

Member Avatar for blueguy777
0
240
Member Avatar for trishtren

hey, Iv been looking around for an easy way to check if a string matches exactly and not just in a few characters I.E B != "ABC" B == B Frederick != F So only if the entire string matches will my condition be met. currently im using : String[] …

Member Avatar for stultuske
0
203
Member Avatar for saad749

I have this Regular Expression in C#: Regex myRegex = new Regex(@"^[a-zA-Z]{1}\s(! | && | \|\| | -> | <->){1}\s[a-zA-Z]{1}$"); if (myRegex.IsMatch(expression)) { validated = true; } else { validated = false; } and I would like to match the following types of Strings: A && B A -> B …

Member Avatar for saad749
0
195
Member Avatar for stanley87

May i know how to matching 2 array keywords? e.g I have 1st array keyword like kfc,mcd,fastfood,etc 2st array keyword like kfc,mcd If i want to get the matching keywords among these 2 arrays, how to i write the matching code? Thank advance for your help.

Member Avatar for stanley87
0
176
Member Avatar for crazy_perl

Hi, I am new to the perl scripting and need your help regarding one issue. I have a piece in my perl script which looks something like below - if ($rec{user} =~ /Major |Minor |Low |High /oxi ) { print "Reject" . $_ . "\n"; next; } Now the list …

Member Avatar for crazy_perl
0
166
Member Avatar for abdulraqeeb33

Hi, I am very new to perl pgming. I have a weblog which has a standard format as the below example IP | remoteUser | authUser | Date/Time | Request | Status | Bytes For example, 74.6.72.229 - - [27/Jan/2007:00:00:36 -0500] "GET /~jking/ralph.html HTTP/1.0" 404 215 the fields are seperated …

Member Avatar for abdulraqeeb33
0
134
Member Avatar for miac09

Hi all, I'm learning python and hope someone can help me with a sort of tricky search/parse problem. I have a tab deliminited file like this: 2 1 863.8 300.2 0.0131 0.0759 0.1727 0.0879 1.5821 3 1 874.5 289.5 0.0574 0.1292 0.4447 0.2258 1.1846 3 2 874.5 289.5 0.0573 0.0527 …

Member Avatar for jice
0
154

The End.