Regular expressions: Difference between revisions

no edit summary
(→‎[[C plus plus|C++]]: Point to C++ instead of C plus plus)
No edit summary
Line 201:
 
'''Note:''' re.match() and regex.match() imply a "^" at the beginning of the regular expression. re.search() and regex.search() do not.
 
==[[Raven]]==
[[Category:Raven]]
 
'i am a string' as str
 
Match:
 
str m/string$/
if "Ends with 'string'\n" print
 
Replace:
 
str r/ a / another / print
 
==[[Ruby]]==
Anonymous user