Hi Sam,

That worked as expected – I confused the characters here, and also missed I 
should use the line character at start. So then tried to figure out how to 
remover the last x number of characters of a line (the two operations I 
think might be among the two most usable in BBEdit ... and that there 
should be built in commands for this, but ...) – but still couldn't figure 
that out consulting the manual .... somehow the $ character needs to be 
involved and similarly one should make use of dots or .{} but that doesn't 
really get anywhere ... any idea there too?

All the best,
Jerry

On Wednesday, March 20, 2019 at 2:40:02 PM UTC+1, Sam Hathaway wrote:
>
> 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] <javascript:>" 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] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> 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