Search pattern works in Notepad++ , but not in BBEdit

2023-11-29 Thread Samir Vasaya
Hello.
I have a .xlm file with below sample contents.

 
  MYNoodles_5Rs_0720
  
  
   Main Location
  
  
   
-1
   
   Sales @ 12% GST
 
 
  PF 05 CNS0720
  
  
   Main Location
  
  
   
-1
   
   Sales @ 12% GST
 


I do a Search and Replace using Grep in BBEdit with

Search pattern:

(?s)(?=(?|()|.)*?(?(1)(?=([^<]+)<\/STOCKITEMNAME>)|<\/ALLINVENTORYENTRIES\.LIST>))(?(2)(?=(?|()|.)*?(?(3)(?=(\2))?|<\/ALLINVENTORYENTRIES\.LIST>))(?(3)(?(4)^\b$|.*?(?=)\K)|^\b$)|^\b$)



Replace pattern:

\2


Im not getting the desired results, Pattern playground hi lights sub 
patterns 1, 2 and 3 Correctly, But the Replacement text: for \2 shows the 
captured text incorrectly.


Am I m doing something wrong. I have gone through BBEdit manual, but 
couldn’t find anything that helped.

I ran the same pattern in Notepad++ and it works flawlessly.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5574799c-afb5-4ecb-b3b4-ef5e2d25d059n%40googlegroups.com.


How should "overscroll" work?

2023-11-29 Thread Jan Erik Moström
I got asked today if "type writer mode" was implemented in BBEdit. I was going 
to answer "sure" but then I tried and what I see is that I can continue to type 
and end up at the bottom om the window. Not until I press down arrow the last 
line ended up in the middle of the window.

I have never thought about this, but I think that this person expected that the 
line that is edited is kept in the middle of the window.

Is the possible in BBEdit? (I personally don't like this but ...)

= jem

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/04FCFB45-C6F9-49D1-ADCB-CDC16984D0A5%40mostrom.pp.se.