Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blah blah
- BEGINIGNORE
- this stuff should get stripped out
- ENDIGNORE
- more stuff here
- StringReplace[str, re["BEGINIGNORE[.\s]*ENDIGNORE"]->""]
- strip[s_String] := StringReplace[s, re@"BEGINIGNORE(.|\n)*ENDIGNORE" -> ""]
- StringReplace[str, re["BEGINIGNORE(.|\n)*ENDIGNORE"]->""]
- StringReplace[str, re["BEGINIGNORE(?s).*ENDIGNORE"]->""]
Add Comment
Please, Sign In to add comment