regex in strings
regex in strings
- Subject: regex in strings
- From: Darin Duphorne <email@hidden>
- Date: Wed, 20 Feb 2002 07:02:03 -0600
Can you use regex in strings with any of the cocoa classes? I'm trying to
implement syntax coloring and something along these lines would replace a
lot of coding.
tell application "Tex-Edit Plus"
if window 1 exists then
replace window 1 looking for "<^*>" replacing with "replacing with styles
{color:red} ,
without cases matching, whole words matching and global replacing
replace window 1 looking for "&^*;" replacing with "replacing with styles
{color:cyan} ,
without cases matching, whole words matching and global replacing
end if
end tell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.