A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.wolfram.com/language/fast-introduction-for-programmers/en/strings/ below:

Wolfram Language Fast Introduction for Programmers

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

WolframConsulting.com

Get Started Strings Video Version

Strings in the Wolfram Language are indicated by double quotes ("...").

The quotes are not included when strings are output, unless you use InputForm:

<> joins strings:

Notes for Java programmers:

<> is specifically reserved for joining strings in the Wolfram Language, avoiding the ambiguity of using + for this purpose.

Notes for Python programmers:

<> is specifically reserved for joining strings in the Wolfram Language, avoiding the ambiguity present in Python for using + for this purpose.

Strings can contain any Unicode characters, entered using names like \[Alpha], shortcuts like ESC a ESC, explicit Unicode like \:03b1—or entered from a palette button .

Notes for Python programmers:

Both Python 3 and Wolfram Language strings are Unicode by default. In Python 2, strings are ASCII by default, unless explicitly defined as Unicode.

String patterns use ~~ to combine strings with pattern constructs:

In patterns p... indicates zero or more repetitions of p.
RegularExpression allows compact regex notation.

Notes for Java programmers:

String patterns offer powerful string matching using the Wolfram Language pattern syntax. You can also string match using the Wolfram Language's regular expressions, with a notation very similar to Java's regex support.

Notes for Python programmers:

Wolfram Language string patterns offer powerful string matching using a general-pattern syntax, optimized for readability and intuitiveness. The closest analog in Python is string matching with regex, which works similarly to the Wolfram Language's RegularExpression function.

String templates use `` to indicate "slots" and <* ... *> to indicate expressions to evaluate:

Notes for Java programmers:

TemplateApply performs a similar function to Java's System.out.printf method, but the Wolfram Language uses `` instead of %, doesn't require a type specifier and allows inline computations using <* ... *>.

Notes for Python programmers:

TemplateApply in the Wolfram Language works similarly to Python's % or format function, except inline computations using <* ... *> are not supported in Python.

QUICK REFERENCE: Operations on Strings


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4