Re: [gentoo-user] Set the alias of an interface with netifrc

2019-01-23 Thread J. Roeleveld
On Sunday, January 20, 2019 1:29:48 AM CET Alarig Le Lay wrote:
> On sam. 19 janv. 16:45:42 2019, J. Roeleveld wrote:
> > Not sure if that is actually "supported" by netifrc.
> > You could add these commands in a postup() block.
> 
> I did that, thanks!
> 
> > Is there a specific benefit for just setting an "alias" like this?
> 
> Yes, knowing what each interface is used for.

That's why I rename the interfaces. That works in all tools and also makes the 
config easier.

--
Joost






Re: [gentoo-user] Missing file so DIE; Seriously?!?!?!?

2019-01-23 Thread Davyd McColl




On January 24, 2019 6:25:48 AM Alan Grimes  wrote:


99.999% sure this is not my fault yet my build gets killed dead by it,
no "Okay, let's see what other things we can build", just DIE!!!


Have you tried --keep-going?


##


Verifying ebuild manifests


!!! A file listed in the Manifest could not be found:
/usr/portage/dev-python/pygments/files/pygments-2.2.0-sphinx17.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-lang/ruby/files/2.4/012-openssl_1.1.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-lang/ruby/files/2.4/012-openssl_1.1.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-lang/ruby/files/2.4/012-openssl_1.1.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/app-text/libetonyek/files/libetonyek-0.1.8-no-parentheses.patch
!!! A file is not listed in the Manifest:
'/usr/portage/kde-apps/kde-dev-utils/files/kde-dev-utils-18.04.3-ki18n-5.48.patch'
!!! A file is not listed in the Manifest:
'/usr/portage/kde-apps/kwrite/files/kwrite-18.04.3-root-user.patch'

!!! A file listed in the Manifest could not be found:
/usr/portage/media-video/obs-studio/files/obs-studio-22.0.3-fdk-build-fix.patch

###

Trying to mask ruby-2.4 now... =\ ## Total: 1626
packages (427 upgrades, 34 new, 6 in new slots, 1159 reinstalls), Size
of downloads: 12,018 KiB Fetch Restriction: 2 packages The following
mask changes are necessary to proceed: (see "package.unmask" in the
portage(5) man page for more details) # required by
dev-ruby/kpeg-1.1.0-r1::gentoo[ruby_targets_ruby24] # required by
dev-ruby/rdoc-6.1.1::gentoo[ruby_targets_ruby26] # required by
dev-lang/ruby-2.5.3::gentoo[rdoc] # required by
dev-vcs/subversion-1.11.1::gentoo[ruby] # required by
app-portage/layman-2.4.2-r2::gentoo[subversion] # required by @selected
# required by @world (argument) # /etc/portage/package.mask: #broken,
pre-release package so don't really care =dev-lang/ruby-2.4.5-r1 NOTE:
The --autounmask-keep-masks option will prevent emerge from creating
package.unmask or ** keyword changes. Use --autounmask-write to write
changes to config files (honoring CONFIG_PROTECT). Carefully examine the
list of proposed changes, paying special attention to mask or keyword
changes that may expose experimental or unstable packages. tortoise
/usr/portage/dev-lang/ruby # 3

I literally have NO IDEA where ruby_targets_ruby24 is being defined, I am 
installing 23, 25, and 26 with a default of 26...



PAIN!!!

--
Please report bounces from this address to a...@numentics.com

Powers are not rights.








[gentoo-user] Missing file so DIE; Seriously?!?!?!?

2019-01-23 Thread Alan Grimes
99.999% sure this is not my fault yet my build gets killed dead by it,
no "Okay, let's see what other things we can build", just DIE!!!


##

>>> Verifying ebuild manifests

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-python/pygments/files/pygments-2.2.0-sphinx17.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-lang/ruby/files/2.4/012-openssl_1.1.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-lang/ruby/files/2.4/012-openssl_1.1.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/dev-lang/ruby/files/2.4/012-openssl_1.1.patch

!!! A file listed in the Manifest could not be found:
/usr/portage/app-text/libetonyek/files/libetonyek-0.1.8-no-parentheses.patch
!!! A file is not listed in the Manifest:
'/usr/portage/kde-apps/kde-dev-utils/files/kde-dev-utils-18.04.3-ki18n-5.48.patch'
!!! A file is not listed in the Manifest:
'/usr/portage/kde-apps/kwrite/files/kwrite-18.04.3-root-user.patch'

!!! A file listed in the Manifest could not be found:
/usr/portage/media-video/obs-studio/files/obs-studio-22.0.3-fdk-build-fix.patch

###

Trying to mask ruby-2.4 now... =\ ## Total: 1626
packages (427 upgrades, 34 new, 6 in new slots, 1159 reinstalls), Size
of downloads: 12,018 KiB Fetch Restriction: 2 packages The following
mask changes are necessary to proceed: (see "package.unmask" in the
portage(5) man page for more details) # required by
dev-ruby/kpeg-1.1.0-r1::gentoo[ruby_targets_ruby24] # required by
dev-ruby/rdoc-6.1.1::gentoo[ruby_targets_ruby26] # required by
dev-lang/ruby-2.5.3::gentoo[rdoc] # required by
dev-vcs/subversion-1.11.1::gentoo[ruby] # required by
app-portage/layman-2.4.2-r2::gentoo[subversion] # required by @selected
# required by @world (argument) # /etc/portage/package.mask: #broken,
pre-release package so don't really care =dev-lang/ruby-2.4.5-r1 NOTE:
The --autounmask-keep-masks option will prevent emerge from creating
package.unmask or ** keyword changes. Use --autounmask-write to write
changes to config files (honoring CONFIG_PROTECT). Carefully examine the
list of proposed changes, paying special attention to mask or keyword
changes that may expose experimental or unstable packages. tortoise
/usr/portage/dev-lang/ruby # 3

I literally have NO IDEA where ruby_targets_ruby24 is being defined, I am 
installing 23, 25, and 26 with a default of 26... 


PAIN!!! 

-- 
Please report bounces from this address to a...@numentics.com

Powers are not rights.




Re: [gentoo-user] OT scripting - strip zero if between period and digit

2019-01-23 Thread David Haller
Hello,

On Wed, 23 Jan 2019, Adam Carter wrote:
>> $ printf '0.1.2.3 01.2.3.4 1.2.3.0 1.2.000.3\n' | \
>> sed 's/0*\([[:digit:]]\+\)/\1/g'
>> 0.1.2.3 1.2.3.4 1.2.3.0 1.2.0.3
>
>So [[:digit:]] is another way of writing [0-9] and the + just means another
>instance of the proceeding expression, right, so your and Francois
>solutions are functionally the same, and all the following are the same
>too, right?

Not quite.

[[:digit:]]+ == [0-9][0-9]*

Not too, that [:digit:] respects locale. Don't know where locale
applies though. Probably Devanagari or such. I just made myself to use
classes rather than char-ranges. See man 7 regex for more classes.

HTH,
-dnh

-- 
"UNIX was not designed to stop people from doing stupid things, because
 that would also stop them from doing clever things."  -- Doug Gwyn



[gentoo-user] Worst ideas in history:

2019-01-23 Thread Alan Grimes
Top 3 bad ideas of all time:

1. Hitler picking a fight with Stalin.
2. Messing with /usr/lib, /usr/lib32, and /usr/lib64 which had not
caused me a single issue since the scheme was introduced. (17.0 is
broken under ~amd64)
3. Putting 320 people on a baloon filled with Hydrogen and sending it to
New Jersey.


I'm rebuilding my system after an 80 day rest because my video card
threw a glitch on the other monitor, a group of pixels it does not update.

PAIN

PAIN

PAIN!!!


wtf is up with linux_headers 4.20; kernels after 4.18.x are radioactive
and will cause illness if death after prolonged exposure. =( I need
headers for 4.18 so it will probably work...  (Version 4.17 is the one
that held up for 80+ days, finally installing 4.18 now..)

-- 
Please report bounces from this address to a...@numentics.com

Powers are not rights.




Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Michael Orlitzky

On 1/23/19 2:24 PM, Grant Edwards wrote:


This is not a good application for a regex.



Since that doesn't seem to be stopping anyone, here's my entry.

sed 
's/\(0*\(255\|254\|253\|252\|251\|250\|249\|248\|247\|246\|245\|244\|243\|242\|241\|240\|239\|238\|237\|236\|235\|234\|233\|232\|231\|230\|229\|228\|227\|226\|225\|224\|223\|222\|221\|220\|219\|218\|217\|216\|215\|214\|213\|212\|211\|210\|209\|208\|207\|206\|205\|204\|203\|202\|201\|200\|199\|198\|197\|196\|195\|194\|193\|192\|191\|190\|189\|188\|187\|186\|185\|184\|183\|182\|181\|180\|179\|178\|177\|176\|175\|174\|173\|172\|171\|170\|169\|168\|167\|166\|165\|164\|163\|162\|161\|160\|159\|158\|157\|156\|155\|154\|153\|152\|151\|150\|149\|148\|147\|146\|145\|144\|143\|142\|141\|140\|139\|138\|137\|136\|135\|134\|133\|132\|131\|130\|129\|128\|127\|126\|125\|124\|123\|122\|121\|120\|119\|118\|117\|116\|115\|114\|113\|112\|111\|110\|109\|108\|107\|106\|105\|104\|103\|102\|101\|100\|99\|98\|97\|96\|95\|94\|93\|92\|91\|90\|89\|88\|87\|86\|85\|84\|83\|82\|81\|80\|79\|78\|77\|76\|75\|74\|73\|72\|71\|70\|69\|68\|67\|66\|65\|64\|63\|62\|61\|60\|59\|58\|57\|56\|55\|54\|53\|52\|51\|50\|49\|48\|47\|46\|45\|44\|43\|42\|41\|40\|39\|38\|37\|36\|35\|34\|33\|32\|31\|30\|29\|28\|27\|26\|25\|24\|23\|22\|21\|20\|19\|18\|17\|16\|15\|14\|13\|12\|11\|10\|9\|8\|7\|6\|5\|4\|3\|2\|1\|0\)\.0*\(255\|254\|253\|252\|251\|250\|249\|248\|247\|246\|245\|244\|243\|242\|241\|240\|239\|238\|237\|236\|235\|234\|233\|232\|231\|230\|229\|228\|227\|226\|225\|224\|223\|222\|221\|220\|219\|218\|217\|216\|215\|214\|213\|212\|211\|210\|209\|208\|207\|206\|205\|204\|203\|202\|201\|200\|199\|198\|197\|196\|195\|194\|193\|192\|191\|190\|189\|188\|187\|186\|185\|184\|183\|182\|181\|180\|179\|178\|177\|176\|175\|174\|173\|172\|171\|170\|169\|168\|167\|166\|165\|164\|163\|162\|161\|160\|159\|158\|157\|156\|155\|154\|153\|152\|151\|150\|149\|148\|147\|146\|145\|144\|143\|142\|141\|140\|139\|138\|137\|136\|135\|134\|133\|132\|131\|130\|129\|128\|127\|126\|125\|124\|123\|122\|121\|120\|119\|118\|117\|116\|115\|114\|113\|112\|111\|110\|109\|108\|107\|106\|105\|104\|103\|102\|101\|100\|99\|98\|97\|96\|95\|94\|93\|92\|91\|90\|89\|88\|87\|86\|85\|84\|83\|82\|81\|80\|79\|78\|77\|76\|75\|74\|73\|72\|71\|70\|69\|68\|67\|66\|65\|64\|63\|62\|61\|60\|59\|58\|57\|56\|55\|54\|53\|52\|51\|50\|49\|48\|47\|46\|45\|44\|43\|42\|41\|40\|39\|38\|37\|36\|35\|34\|33\|32\|31\|30\|29\|28\|27\|26\|25\|24\|23\|22\|21\|20\|19\|18\|17\|16\|15\|14\|13\|12\|11\|10\|9\|8\|7\|6\|5\|4\|3\|2\|1\|0\)\.0*\(255\|254\|253\|252\|251\|250\|249\|248\|247\|246\|245\|244\|243\|242\|241\|240\|239\|238\|237\|236\|235\|234\|233\|232\|231\|230\|229\|228\|227\|226\|225\|224\|223\|222\|221\|220\|219\|218\|217\|216\|215\|214\|213\|212\|211\|210\|209\|208\|207\|206\|205\|204\|203\|202\|201\|200\|199\|198\|197\|196\|195\|194\|193\|192\|191\|190\|189\|188\|187\|186\|185\|184\|183\|182\|181\|180\|179\|178\|177\|176\|175\|174\|173\|172\|171\|170\|169\|168\|167\|166\|165\|164\|163\|162\|161\|160\|159\|158\|157\|156\|155\|154\|153\|152\|151\|150\|149\|148\|147\|146\|145\|144\|143\|142\|141\|140\|139\|138\|137\|136\|135\|134\|133\|132\|131\|130\|129\|128\|127\|126\|125\|124\|123\|122\|121\|120\|119\|118\|117\|116\|115\|114\|113\|112\|111\|110\|109\|108\|107\|106\|105\|104\|103\|102\|101\|100\|99\|98\|97\|96\|95\|94\|93\|92\|91\|90\|89\|88\|87\|86\|85\|84\|83\|82\|81\|80\|79\|78\|77\|76\|75\|74\|73\|72\|71\|70\|69\|68\|67\|66\|65\|64\|63\|62\|61\|60\|59\|58\|57\|56\|55\|54\|53\|52\|51\|50\|49\|48\|47\|46\|45\|44\|43\|42\|41\|40\|39\|38\|37\|36\|35\|34\|33\|32\|31\|30\|29\|28\|27\|26\|25\|24\|23\|22\|21\|20\|19\|18\|17\|16\|15\|14\|13\|12\|11\|10\|9\|8\|7\|6\|5\|4\|3\|2\|1\|0\)\.0*\(255\|254\|253\|252\|251\|250\|249\|248\|247\|246\|245\|244\|243\|242\|241\|240\|239\|238\|237\|236\|235\|234\|233\|232\|231\|230\|229\|228\|227\|226\|225\|224\|223\|222\|221\|220\|219\|218\|217\|216\|215\|214\|213\|212\|211\|210\|209\|208\|207\|206\|205\|204\|203\|202\|201\|200\|199\|198\|197\|196\|195\|194\|193\|192\|191\|190\|189\|188\|187\|186\|185\|184\|183\|182\|181\|180\|179\|178\|177\|176\|175\|174\|173\|172\|171\|170\|169\|168\|167\|166\|165\|164\|163\|162\|161\|160\|159\|158\|157\|156\|155\|154\|153\|152\|151\|150\|149\|148\|147\|146\|145\|144\|143\|142\|141\|140\|139\|138\|137\|136\|135\|134\|133\|132\|131\|130\|129\|128\|127\|126\|125\|124\|123\|122\|121\|120\|119\|118\|117\|116\|115\|114\|113\|112\|111\|110\|109\|108\|107\|106\|105\|104\|103\|102\|101\|100\|99\|98\|97\|96\|95\|94\|93\|92\|91\|90\|89\|88\|87\|86\|85\|84\|83\|82\|81\|80\|79\|78\|77\|76\|75\|74\|73\|72\|71\|70\|69\|68\|67\|66\|65\|64\|63\|62\|61\|60\|59\|58\|57\|56\|55\|54\|53\|52\|51\|50\|49\|48\|47\|46\|45\|44\|43\|42\|41\|40\|39\|38\|37\|36\|35\|34\|33\|32\|31\|30\|29\|28\|27\|26\|25\|24\|23\|22\|21\|20\|19\|18\|17\|16\|15\|14\|13\|12\|11\|10\|9\|8\|7\|6\|5\|4\|3\|2\|1\|0\)\)/\2.\3.\4.\5/g'


[gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Grant Edwards
On 2019-01-23, Alexander Kapshuk  wrote:
> On Wed, Jan 23, 2019 at 9:41 PM Grant Edwards  
> wrote:
>> On 2019-01-23, Alexander Kapshuk  wrote:
>>
>> > This any better? :-)
>> >
>> > echo '198.088.0.01
>> > 198.088.062.01
>> > 198.088.0.001' | sed -r 's/\.0+([^.0]+)/.\1/g'
>>
>> I guess it's 'better', but it's still broken:
>>
>> $ echo '003.4.5.6' | sed -r 's/\.0+([^.0]+)/.\1/g'
>> 003.4.5.6
>>
>> This is not a good application for a regex.
>
> The OP stated that there were no leading zeros in the first octet of
> the IP address, so that case did not need to be handled.

If I had a dollar for every bug/failure that happened because somebody
relied on an input restriction like that...

-- 
Grant Edwards   grant.b.edwardsYow! You mean you don't
  at   want to watch WRESTLING
  gmail.comfrom ATLANTA?




Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Michael Orlitzky

On 1/23/19 3:08 PM, Alexander Kapshuk wrote:


The OP stated that there were no leading zeros in the first octet of
the IP address, so that case did not need to be handled.



$ echo "1.00.3.4" | sed -r 's/\.0+([^.0]+)/.\1/g'
1.00.3.4



Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Alexander Kapshuk
On Wed, Jan 23, 2019 at 9:41 PM Grant Edwards  wrote:
>
> On 2019-01-23, Alexander Kapshuk  wrote:
>
> > This any better? :-)
> >
> > echo '198.088.0.01
> > 198.088.062.01
> > 198.088.0.001' | sed -r 's/\.0+([^.0]+)/.\1/g'
>
> I guess it's 'better', but it's still broken:
>
> $ echo '003.4.5.6' | sed -r 's/\.0+([^.0]+)/.\1/g'
> 003.4.5.6
>
> This is not a good application for a regex.
>
> --
> Grant Edwards   grant.b.edwardsYow! I have accepted
>   at   Provolone into my life!
>   gmail.com
>
>
The OP stated that there were no leading zeros in the first octet of
the IP address, so that case did not need to be handled.



[gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Grant Edwards
On 2019-01-23, Alexander Kapshuk  wrote:

> This any better? :-)
>
> echo '198.088.0.01
> 198.088.062.01
> 198.088.0.001' | sed -r 's/\.0+([^.0]+)/.\1/g'

I guess it's 'better', but it's still broken:

$ echo '003.4.5.6' | sed -r 's/\.0+([^.0]+)/.\1/g'
003.4.5.6

This is not a good application for a regex.

-- 
Grant Edwards   grant.b.edwardsYow! I have accepted
  at   Provolone into my life!
  gmail.com




Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Alexander Kapshuk
On Wed, Jan 23, 2019 at 4:10 PM Grant Edwards  wrote:
>
> On 2019-01-23, Alexander Kapshuk  wrote:
> >
> > How about this one?
> >
> > echo '198.088.0.01
> > 198.088.062.01' | sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> > 198.88.0.1
> > 198.88.62.1
>
> Also no.
>
> $ echo 198.088.0.001 |   sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> 198.88.0.01
>
>
> --
> Grant Edwards   grant.b.edwardsYow! Hello.  Just walk
>   at   along and try NOT to think
>   gmail.comabout your INTESTINES being
>almost FORTY YARDS LONG!!
>
>

This any better? :-)

echo '198.088.0.01
198.088.062.01
198.088.0.001' | sed -r 's/\.0+([^.0]+)/.\1/g'
198.88.0.1
198.88.62.1
198.88.0.1



Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Kai Peter

On 2019-01-23 18:26, Neil Bothwick wrote:

On Wed, 23 Jan 2019 14:09:45 - (UTC), Grant Edwards wrote:


> How about this one?
>
> echo '198.088.0.01
> 198.088.062.01' | sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> 198.88.0.1
> 198.88.62.1

Also no.

$ echo 198.088.0.001 |   sed 's/\.0\([0-9][0-9]*\)/.\1/g'
198.88.0.01


This is like playing Whack-a-Mole with sed ;-)


That's the fun ;-)

I think the truth is in the middle between a twelve-pages-script and a 
one-liner. Split it, 'sed' it, check result, correct result if required, 
combine it.


--
Sent with eQmail-1.11 beta - a fork of djb's famous qmail



Re: [gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Neil Bothwick
On Wed, 23 Jan 2019 14:09:45 - (UTC), Grant Edwards wrote:

> > How about this one?
> >
> > echo '198.088.0.01
> > 198.088.062.01' | sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> > 198.88.0.1
> > 198.88.62.1  
> 
> Also no.
> 
> $ echo 198.088.0.001 |   sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> 198.88.0.01

This is like playing Whack-a-Mole with sed ;-)


-- 
Neil Bothwick

I know corn oil comes from corn, where does baby oil come from?


pgpVmxUInKN3A.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: OT scripting - strip zero if between period and digit

2019-01-23 Thread Grant Edwards
On 2019-01-23, Alexander Kapshuk  wrote:
>
> How about this one?
>
> echo '198.088.0.01
> 198.088.062.01' | sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> 198.88.0.1
> 198.88.62.1

Also no.

$ echo 198.088.0.001 |   sed 's/\.0\([0-9][0-9]*\)/.\1/g'
198.88.0.01


-- 
Grant Edwards   grant.b.edwardsYow! Hello.  Just walk
  at   along and try NOT to think
  gmail.comabout your INTESTINES being
   almost FORTY YARDS LONG!!




Re: [gentoo-user] OT scripting - strip zero if between period and digit

2019-01-23 Thread Michael Orlitzky

On 1/23/19 5:52 AM, Wols Lists wrote:


I've just done a bit of digging, and would this work to match an octet?

[0-9][0-9]?[0-9]?



It doesn't match 0123. Regardless, using [0-9] is destined to fail 
because it will match things like 999 that also aren't an octet.




Re: [gentoo-user] OT scripting - strip zero if between period and digit

2019-01-23 Thread Wols Lists
On 23/01/19 07:37, Alexander Kapshuk wrote:
> On Wed, Jan 23, 2019 at 9:05 AM Paul Colquhoun
>  wrote:
>>
>> On Wednesday, 23 January 2019 5:52:57 PM AEDT Alexander Kapshuk wrote:
>>> On Wed, Jan 23, 2019 at 5:20 AM Adam Carter  wrote:
>> François-Xavier
>
> My bad, it should be:
>
> sed 's/0*\([0-9][0-9]*\)/\1/g'
>
> (tests are indeed needed!)

 Many thanks François. This is almost right, but it is also stripping zeros
 that follow a letter, and I only want it to strip zeros that are
 proceeded by a period. There are no leading zeros in the first octet of
 the IP so that case does not need to be handled.

 Does the \1 refer to what's in the ()'s? So anything that one would wont
 to carry through should be inside the ()'s and anything that's outside is
 stripped, right?
>>> Would something like to do the trick?
>>> echo 198.088.062.01 | sed 's/\.0/./g'
>>> 198.88.62.1
>>
>> In a word, no.
>>
>> echo 198.088.0.01 | sed 's/\.0/./g'
>> 198.88..1
>>
>>
>> --
>> Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
>>   Asking for technical help in newsgroups?  Read this first:
>>  http://catb.org/~esr/faqs/smart-questions.html#intro
>>
>>
>>
>>
> 
> How about this one?
> 
> echo '198.088.0.01
> 198.088.062.01' | sed 's/\.0\([0-9][0-9]*\)/.\1/g'
> 198.88.0.1
> 198.88.62.1
> 

I've just done a bit of digging, and would this work to match an octet?

[0-9][0-9]?[0-9]?

I know ? normally matches a single character, but apparently in this
syntax it means "0 or 1 occurrence of the preceding expression". So that
will detect a number consisting of at most three digits.

I thought there must be a "detect a single optional character" operator
... :-)

Cheers,
Wol