code_junkie

regex for parsing resource (.rc) files

Nov 10th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # Run Script Using This Command Line
  2. #
  3. # sed.exe -n -f sed.txt test.rc
  4. #
  5.  
  6. # Check for lines that contain strings
  7. /".*"/ {
  8. # print the string part of the line only
  9. s/(.*)(".*")(.*)/2/ p
  10. }
Add Comment
Please, Sign In to add comment