Jump to content

Regular expressions: Difference between revisions

Added AppleScript version
No edit summary
(Added AppleScript version)
Line 4:
* to match a string against a regular expression
* to substitute part of a string using a regular expression
 
==[[AppleScript]]==
[[Category:AppleScript]]
'''Libraries:''' [[Satimage.osax]]
 
try
find text ".*string$" in "I am a string" with regexp
on error message
return message
end try
 
try
change "original" into "modified" in "I am the original string" with regexp
on error message
return message
end try
 
==[[Java]]==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.