Good { morning, afternoon, evening },
We're working on an update to BBEdit 12.0 to address a few
recently reported issues.
Note that this is a _pre-release_ version. The intent is to fix
bugs and address areas of improvement based on what our
customers have reported. However, since the softw
A decent Perl one-liner for this sort of thing would be:
```sh
# increment all integers by one
perl -i.orig -ple 's/(-?\d+)/$1+1/ge' myfile.txt
```
Hope this helps.
-sam
On 6 Nov 2017, at 13:32, Fletcher Sandbeck wrote:
Some programming languages allow you to specify a function as the
replace
Some programming languages allow you to specify a function as the replacement
expression. For example you an do this in JavaScript like this.
"1 and a 2".replace(/\d/g, function (match, capture) {
return (parseInt(match)+1);
});
Outputs: "2 and a 3"
In terms of BBEdit you would probably w
Something I've always wanted but never heard mentioned, thought I'd throw
out the idea here: replacement expressions that include math.
Suppose you have certain integers in your text that you want to ADD ONE TO.
What if you could capture a matching integer in subexpression \1, then do
somethin