Project

General

Profile

Bug #5363

closed

$bfind().regex does not populate $regml() properly

Added by westor (GR) 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/24/2021
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

It seems /bcopy doesn't work in the following case.

//bset -t &a 1 one two three | if ($bfind(&a,1,/((?:^| )two)(?= |$)/).regex) { bcopy -c &a $regml(1).pos &a $calc($regml(1).pos + $len($regml(1))) -1 } | echo -a $bvar(&a,1-).text

- Thanks!

#1

Updated by westor (GR) 3 months ago

My bad, it's not related on /bcopy command, it seems the bug related on $regml().pos identifier.

Example:

//bset -t &a 1 one two three | if ($bfind(&a,1,/((?:^| )two)(?= |$)/).regex) { echo -a bcopy -c &a $regml(1).pos &a $calc($regml(1).pos + $len($regml(1))) -1 }

returns: bcopy -c &a &a 0 -1
should return: bcopy -c &a 4 &a 8 -1

#2

Updated by Per Amundsen 3 months ago

  • Subject changed from /bcopy -c bug to $bfind().regex does not populate $regml() properly
  • Status changed from New to Resolved
#3

Updated by Per Amundsen 3 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF