Re: Regular Expressions Resources
Re: Regular Expressions Resources
- Subject: Re: Regular Expressions Resources
- From: vectormation <email@hidden>
- Date: Sun, 7 Oct 2001 14:50:49 -0400
BBedit's "grep" help will teach you the basics of regular expressions,
and a web search on either topic should turn up other resources... have
you tried Sherlock or google.com?
a few basics :
\ - escape character, needed to "escape" special characters and make
them "literal"
* - any number of any characters
[] - indicates a "set" of characters to match ("[0-9]" accepts any of
{0,1,2,3,4,5,6,7,8,9})
() - used for grouping ala math
~Phi
>
Hi-
>
>
I was just wondering if there are there any good resources on the web for
>
regular expressions commands? After seeing this kind of stuff on the list, I
>
can only imagine the true power of them:
>
>
>REReplace names pattern "(.+) ([0-9]+)\\.jpg" with "\\2.jpg \\1"
>
>
But I have no Idea what any of it means?
>
>
I currently have the Regular Expressions OSAX from Script Tools 1.3.6, but
>
am willing to look at others if they are better. Also, would BBEdit work for
>
this sort of thing?
>
>
Background:
>
I am trying to create a droplet that will make all HTML tags in a document
>
lowercase. i.e. <HTML> becomes <html> (among other things). If anyone knows
>
of any resources (scripts, apps) to do this I would be very appreciative,
>
but I still want to learn about Regular Expressions, if only for the
>
educational value.
>
>
This is my first real attempt at scripting anything useful, not just moving
>
folders around, etc.
>
--
>
Greg
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users