Comparison of programming languages (string functions): Difference between revisions

Content deleted Content added
Dthomsen8 (talk | contribs)
Filling in 1 references using Reflinks
clean up, typo(s) fixed: For example → For example, using AWB
Line 24:
:e.g. <code>length("hello world")</code> would return 11.
 
Other languages may have string functions with similar or exactly the same syntax or parameters or outcomes. For example, in many languages the length function is usually represented as ''[[Len (programming)|len]](string)''. The below list of common functions aims to help limit this confusion.
 
==Common string functions (multi language reference)==
Line 2,765:
|[[OCaml]] 4+
|}
 
 
'''Other languages'''
Line 2,874 ⟶ 2,873:
 
====Perl====
Perl 5 has no built-in trim function. However, the functionality is commonly achieved using [[regular expression]]s.
 
Example: