home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 86,765 of 87,272   
   Eric Pozharski to Joseph Rosevear   
   Re: regex question   
   29 Sep 24 14:03:21   
   
   From: apple.universe@posteo.net   
      
   with  Joseph Rosevear wrote:   
      
   > This may be off topic, but let me try anyway.   
      
   Yes, yes it is.  comp.editors would be glad to feature yet another   
   vi v. vim war (it's a thing).   
      
   > I've been editing HTML.  I used to write my comments (incorrectly)   
   > like this:   
   >   
   >       
   >   
   > I asked my AI friend, Pi, for help and he said do this in vim:   
   >   
   >    :%s///g   
   >   
   > I've used vi, so I tried that and vim.  I don't know if it matters.   
   > Anyway, I got "No match found."   
   >   
   > I could do other sorts of search and replaces, but not using the (.*)   
   > and \1 combination.   
   >   
   > This was frustrating, because Pi kept telling me it should work.  But   
   > it didn't.  I'm wondering if I'm missing something?   
      
   Yes, ':h /magic' (we are still in vim-context) would clean that up.  See   
   for yourself:   
      
   source:   
      
   	LFOT PLFA FYRK VCCB   
   	KBUY  DNEN   
   	 KSNA LHBM   
   	LFSL DFOD    
   	   
   	PAKN DIAE  KATW DGLN   
   	KNBQ KGGE RPUB FMNH   
      
   Either   
      
   	:%s///g   
      
   or   
      
   	:%s/\v\//g   
      
   would do what you want.  Watch for backslashes.   
      
   *SKIP* [  4 lines   1 level deep]   
      
   p.s.  Acquiring vi-zoo is deep down on my TODO.lst .  Thus I can't say   
   how to fix halucinations.   
      
   p.s.s.  Yes, People vs. /magic war should be featured on comp.editors .   
      
   --   
   Torvalds' goal for Linux is very simple: World Domination   
   Stallman's goal for GNU is even simpler: Freedom   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca