Jerry,

You’re probably thinking of shell globbing syntax where `?` means “one of any character”. In a regular expression, `.` means “one of any character”.

This matches three characters at the beginning of a line:

```
^...
```

This means the same thing, but is a little more readable:

```
^.{3}
```

Hope this helps.
-sam

On 20 Mar 2019, at 7:56, Jerry Nilson wrote:

Hi,

Cannot figure out the easiest way to remove a certain number of characters at the beginning (or the end for that matter) of each line. Prefix/Suffix lines seems only working when it is the same characters, so guess I should use GREP, but cannot figure out the correct GREP syntax – just adding as many ? as characters I want to remove is apparently not valid ... . Any idea? (I know the syntax for removing characters within a certain pattern,
but there are different characters after the last character I want to
remove.)

All the best,
Jerry

--
This is the BBEdit Talk public discussion group. If you have a
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.


--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to