At 14:58 -0400 06/09/2011, Jefferis Peterson wrote:
IOW, what is the symbol for optional but not
necessary spaces?
This should be near the first page of anything you read about regex.
ab\s*c will match abc and ab[any amount of white space]c
Paste this into a BBEdit doc and run it from the #! menu:
#!/usr/bin/perl
# put any number of white space chars or none between b and c
$_ = "ab c" ;
/ab\s*c/ ? print "matched" : print "no match";
JD
--
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>