Main » TERM » R »

Raw String Definition & Meaning

A raw string in programming allows all characters in a string literal to remain the same in code and in the material, rather than performing their standard programming functions. Raw strings are denoted with the letter r, or capital R, and might look something like this:

R "(hello)"

This allows characters that would otherwise trigger specific formatting to read as their literal value instead. A backslash (\) is a good example: these are often combined with other characters to denote a specific action in programming. Different programming languages have different patterns for raw strings, and they may have different delimiters, but most raw strings take the same general form.

Delimiters in raw strings

Raw strings avoid using escape sequences, which automatically trigger a different feature within the code (such as a paragraph break or other function). In the earlier example of a raw string: 

R "(hello)"

the parentheses or quotations can both function as delimiters, which segment string literals properly. Delimiters designate a string literal. Characters or strings that need to be separated are often parenthetical or bracketed. Different programming languages will use different delimiters, but they must delineate the separation of strings clearly. In this case, R indicates a raw string, and everything within the parentheses will read as its literal character value.

Texting & Chat Abbreviations

From A3 to ZZZ we list 1,559 text message and online chat abbreviations to help you translate and understand today's texting lingo. Includes Top... Read More »

Huge List of Computer Certifications

Have you heard about a computer certification program but can't figure out if it's right for you? Use this handy list to help you decide. Read More »

Computer Architecture Study Guide

Computer architecture provides an introduction to system design basics for most computer science students. Read More »

Network Fundamentals Study Guide

Networking fundamentals teaches the building blocks of modern network design. Learn different types of networks, concepts, architecture and... Read More »

The Five Generations of Computers

Learn about each of the five generations of computers and major technology developments that have led to the computing devices that we use... Read More »