On 05.01.2011 10:45 AM, Ken Lanxner wrote:
Hi.

How do I write a pattern to match a string that must contain 1 or more
tabs and may also contain 1 or more spaces --- in any order.

These would match:

tab
tab tab
tab space tab
space tab tab
tab space tab space

but a string of just 1 or more spaces would not match.

Thanks!

Ken



Hello Ken!


Try with this:

^(\t|\t\t|\t \t| \t\t|\t \t )$

Are these spaces alone in one line? If not remove ^ and $


marek

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to