Re: RegEx ignores space in pattern
Re: RegEx ignores space in pattern
- Subject: Re: RegEx ignores space in pattern
- From: Emmanuel <email@hidden>
- Date: Fri, 19 Mar 2004 19:02:55 +0100
At 5:46 PM +0100 19/03/04, Hans Haesler wrote:
>
I'd like to match numbers which can be formatted like this:
>
12 34 56-78
>
123 456-78
>
1234 56-78
In addition to John's post.
If the above does describe what you expect, then you have to be more explicit:
------ tested against your examples
([0-9]{2} [0-9]{2} [0-9]{2}|[0-9]{3} [0-9]{3}|[0-9]{4} [0-9]{2})-[0-9]{2}
------
Emmanuel
Tip of the day: test your regular expressions in Smile's 'Find' dialog.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.