> > Doesn't \s+? mean the white space is optional? > No. The plus-sign means 'one or more.' The question-mark makes it 'non-greedy.' So \s+? will match the first instance of one or more whitespace characters -- i.e. the first whitespace character.
The quantifier for 'zero or more' is the asterisk. So if you want to match an unlimited number of optional whitespace characters, you'd want \s* -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "[email protected]" rather than posting to the group.
