Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gets the content between two tags
#7
Quote:_s.replacerx("#if.*(?s)(.*?)#endif" "")      
->      This replacement method always leaves a blank line, It's the same in PowerShell
 
Quote:_s.replacerx("(?Sad?Sad?!\n)\s)*\n){2,}" "[]") 
    ->      This may affect all blank lines


Messages In This Thread
Gets the content between two tags - by Davider - 10-28-2022, 03:38 AM
RE: Gets the content between two tags - by Kevin - 10-28-2022, 12:42 PM
RE: Gets the content between two tags - by Kevin - 10-28-2022, 07:49 PM
RE: Gets the content between two tags - by Kevin - 11-02-2022, 01:49 PM
RE: Gets the content between two tags - by Davider - 11-03-2022, 12:36 AM
RE: Gets the content between two tags - by Kevin - 11-03-2022, 04:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)