Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I do a case-insensitive string comparison?

Andy Mc's C# FAQ for C++ programmers
Use the String.Compare function. Its third parameter is a boolean which specifies whether case should be ignored or not. "fred" == "Fred" // false System.String.Compare( "fred", "Fred", true ) == 0 // true For more control over the comparison, e.g. exotic features like width-sensitivity, consider using System.Globalization.CompareInfo.Compare(), e.g. CultureInfo.CurrentCulture.CompareInfo.Compare( "fred", "Fred", CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.
Related Questions

How can I make all my URLs case-insensitive with mod_rewrite?

Apache Server Frequently Asked Questions
You can't! The reasons are: first, that, case translations for arbitrary length URLs cannot be done via regex patterns and corresponding substitutions. One needs a per-character pattern like the sed/Perl tr|..|..| feature. Second, just making URLs always upper or lower case does not solve the whole problem of case-INSENSITIVE URLs, because URLs actually have to be rewritten to the correct case-variant for the file residing on the filesystem in order to allow Apache to access the file.
Related Questions

How Do I Perform a Case-Insensitive Query?

G Frequently Asked Questions About PL/SQL
You may be familiar with workarounds that allow a query to match VARCHAR2 values regardless of uppercase and lowercase. For example, you can use the UPPER() or LOWER() function on the column value, and build a function-based index on the column. Or you can add another column to the table, with a trigger to store an all-uppercase or all-lowercase copy of another column value, and then query this new column.
Related Questions

Why is the filesystem completely case-insensitive?

OSXFAQ - Technical News and Support for Mac OS X
Apparently that's just the way that HFS+ formatted partitions work, whether you're in MacOS or "Unix". Sounds like formatting a second drive in UFS might restore the "lost" expected Unix-like behavior...I'll try that Monday.
Related Questions

How do I perform a case-insensitive search?

Frequently-Asked Questions about sed, the stream editor
Several versions of sed support case-insensitive matching: ssed and GNU sed v3.02+ (with I flag after s/// or /regex/); sedmod with the -i switch; and sed16 (which supports both types of switches). With other versions of sed, case-insensitive searching is awkward, so people may use awk or perl instead, since these programs have options for case-insensitive searches. In gawk/mawk, use "BEGIN {IGNORECASE=1}" and in perl, "/regex/i".
Related Questions

How do I do regular expression searches and case-insensitive regular expression searches?

PostgreSQL FAQ
The ~ operator does regular-expression matching, and ~* does case-insensitive regular-expression matching. There is no case-insensitive variant of the LIKE operator, but you can get the effect of case-insensitive LIKE with this: WHERE lower(textfield) LIKE lower(pattern)
Related Questions

Then why have a comparison group?

WHI Participant website
To compare the number of cases of breast cancer, colorectal cancer, heart disease against the number in the Dietary Change group (the intervention group). To account for gradual diet changes that women may make for reasons not related to the DM intervention.
Related Questions

How do I convert a string to all upper or lower case?

Library Functions
Some libraries have routines strupr and strlwr or strupper and strlower, but these are not Standard or portable. It's a straightforward exercise to write upper/lower-case functions in terms of the toupper and tolower macros in <ctype.h>; see also question 13.5. (The only tricky part is that the function will either have to modify the string in-place or deal with the problem of returning a new string; see question 7.5a.
Related Questions

Do you string racquets?

Rocky Mountain Racquet Specialists - Frequently Asked Questi...
We string racquets for tennis, racquetball, squash and badminton. String prices vary from $20-$60 installed and customization work is also available. Please see our string page for more information.
Related Questions

How often should I re-string my racquet?

Rocky Mountain Racquet Specialists - Frequently Asked Questi...
The rule of thumb is to re-string your racquet as many times a year as you play in a week. Therefore, if you play three times a week, you should re-string your racquet every four months. Factors such as tennis elbow will effect how often you re-string your racquet. Please see our tips page for more information.
Related Questions

What is a format string?

Digitizing Frequently Asked Questions (FAQ) for MicroScribe ...
A format string is used by MicroScribe Utility Software (MUS) to format data coming from the MicroScribe so that a 3rd party application can accept and use the data. A set of standard format strings for popular software packages is included with MUS, and a user can also create custom format strings. See the MUS help file for more information on format strings.
Related Questions

How do I split a string?

Frequently Asked Questions for comp.lang.lisp
There is no 'right' answer to this question; many lisp programmers have rolled their own solution in the past, and others are of the view that it should never be necessary, as long as all sequence functions are used with consistent :start and :end arguments. However, a community-based 'standard' was developed in June/July 2001 on comp.lang.lisp; known as SPLIT-SEQUENCE (formerly PARTITION), it works as follows in its simplest form: split-sequence #\Space "A stitch in time saves nine.
Related Questions

How can find a string?

Exontrol Software - ExEdit FAQ page
The control provides Find and Replace support. The AllowFind property specifies whether the control can search for a string using the built-in Find dialog. By default, the AllowFind property is True. The control displays the Find dialog if the user presses CTRL+F key.
Related Questions

What are the comparison groups?

Frequently Asked Questions
All NDNQI reports provide national comparison data based on unit type groups. Many reports provide comparison data based on unit type groups within hospital groups. Hospital groups may be based on the number of staffed beds or teaching status.
Related Questions

Do I have a case?

Frequently Asked Questions| Davis Law Group
This is a difficult question to answer without knowing all of the facts and circumstances involved. The success of a case will depend on the specific facts involved and the laws of the jurisdiction or region where the incident occurred. Generally, if you can show that the party responsible for your injuries violated some duty of care (e.g., causing a collision or making a dangerous product), then you probably have a claim against that party for the amount of damages you have sustained.
Related Questions

Subject: Why Are People So Insensitive?????????

VoyForums: MMC Through The Years...
Okay in the past 6 months I've dropped about 40 pounds. I didn't think I looked fat before. I'm actually a lot heavier than I look. I think it's cuz I have big bones (<i>I'm not fat, I'm big bone-ded!!!</i>). So anyway, I lose all this weight and people have been telling me how good I look, calling me "Skinny Minnie;" my Mom's classic line, "You don't look so fat;" and the ever popular, "You look great. Why don't you have a boyfriend?" And one person even told me I was beautiful.
Related Questions

Ok, I am not an insensitive dolt, but I am new ... is this convention for me?

Dark Odyssey - A Journey of Sexual Adventure
Absolutely, Spring Fire was designed as an entry point to the alternative lifestyle community. It's purpose is to give you a taste of the many different flavors of human sexuality. Where other events simply focus on a singular aspect like BDSM or the Lifestyle, we are the sampler version ... a taste of sexuality ... if we may. Many of our classes are introductory level so you can start at the beginning and walk away armed with new skills and ideas.
Related Questions

Why does it send back the same string twice?

Expect FAQ (Frequently Asked Questions)
From: Don Libes To: yusufg@himalaya.cc.gatech.edu (Yusuf Goolamabbas) Subject: Duplicate pattern matches in Expectk --text follows this line-- Hi, I am trying to do a very simple thing in expectk spawn cat expect_background -re ".+" { send $expect_out(0,string) } exp_send "Hello World\n" Now the display in the text widget looks like this Hello World\r Hello World\r whereas I was expecting only one line Hello World\r Thanks in advance, Yusuf -- Yusuf Goolamabbas yusufg@cc.gatech.
Related Questions

How do I use $wgSpamRegex to block more than one string?

Manual:FAQ - MediaWiki
wgSpamRegex is a powerful filter for page content. Adding multiple items to the regex, however, can be awkward. Consider this snippet: wgSpamRegexLines[] = 'display\s*:\s*none'; $wgSpamRegexLines[] = 'overflow:\s*\s*auto'; [...] $wgSpamRegex = '/(' . implode( '|', $wgSpamRegexLines ) . ')/i'; This example code allows convenient addition of additional items to the regex without fiddling about each time. It also demonstrates two popular filters, which block some of the most common spam attacks.
Related Questions

What is the STRING database?

Frequently Asked Questions: August 2006 Archives
What is it? The STRING database stores known and predicted protein-protein interactions where the interactions are either direct (physical) or indirect (functional) associations.
Related Questions

What string tension should I use?

Tennis Racquet FAQs - Racket Information and Advice
Are you looking for more distance on your shots or more control over them? Generally, if you string at the lower end of your racquet's recommended tension range, the same stroke will make the ball fly farther. Adjust string tension according to desired effect. Low tension = deeper shots. High tension = shorter shots. any given swing speed, higher string tensions improve control. High tension = better control. Low tension = less control.
Related Questions

Can I get tennis elbow without a string dampener?

Tennis Racquet FAQs - Racket Information and Advice
The cause of tennis elbow is not entirely clear, and only about 5% of the people who suffer from tennis elbow are actually tennis players. One school of thought says it is the repeated act of the tennis swing that causes a muscle spasm and subsequent stress on the tendons around the exterior of the elbow. Vibration dampeners do exactly what they say - reduce the vibration you feel come up your arm after hitting the ball.
Related Questions

What string gauges should I use?

Frequently asked questions
Our standard, acoustic round neck guitars are set up at the factory with a regular medium gauge that is: .013, .017, .026, .036, .046, .056. Some people like to increase the first or second string's diameters to .015 and .019. We find this good for playing in standard guitar tuning and/or dropped D and G tunings. If one desires to play in open A or open E tunings, we would suggest that you use, for the wound strings, a lighter gauge: G @ .024, D @ .034, A @ .044 and E @ .052 or .054.
Related Questions

Do you offer any colored tennis racket string or string accessories?

Tennis Racquet FAQs - Racket Information and Advice
Do It Tennis offers tennis sting in a variety of colors, including white, natural, pink, blue, red, orange, silver, black, gold and yellow. String accessories, like vibration dampeners, tape and grommets come in many of the same colors.
Related Questions

What dietary changes were asked of the comparison group?

WHI Participant website
None. Women in the Comparison group were asked to maintain their usual eating habits. They received standard nutrition information when they were randomized into the DM Trial (USDA Dietary Guidelines for Americans 1990 and 1995).
Related Questions

Can we use more than one instrument of the same model in the comparison with the CRMLN lab?

Laboratory Quality Assurance Programs: CRMLN: Frequently Ask...
Yes, more than one instrument may be used as long as they are different serial numbers from the same model. In this way, manufacturers may increase the number of runs that can be accomplished within a time period. However, different models must perform all of the analyses and be certified separately.
Related Questions

What is the installed weight of a steel roof in comparison to other products?

Accurate Contracting, Inc. - Frequently Asked Questions
Note that the weights for cedar, clay and concrete products are all dry weights. All three-product categories weights increase when wet .
Related Questions

What is meant by schema comparison?

TOYS Frequently Asked Questions
Schema comparison simply means comparing two database schemas to determine structural differences. The data contained in these schemas (if any) is not compared. Applications often span more than a single schema. TOYS allows comparison of one logical database against another logical database. Each logical database is one or more schemas.
Related Questions

How does Quick Comparison Chart work?

Frequently Asked Questions
You can create side-by-side comparisons of any three census areas or of any three buildings with any combination of unit types in those buildings.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact