SHARE
TWEET

Untitled

a guest Jun 16th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo "-123 +1234" | grep -Po '(?<=-)123 (?<=+)1234'
  2.      
  3. echo "-123 +1234" | grep -Po '(?<=-)123
  4.      
  5. 123 1234
  6.      
  7. $ echo "-123 +1234" | grep -Po 'd+'
  8. 123
  9. 1234
  10.      
  11. $ echo "-123 +1234" | perl -nle'@m=/d+/g; print "@m" if @m'
  12. 123 1234
  13.      
  14. $ echo "-123 +1234" | perl -nle'print "$1 $2" if /-(d+) +(d+)/'
  15. 123 1234
  16.      
  17. echo "-123 +1234" | perl -wnE'@m = /([0-9]+)/g; say for @m'
  18.      
  19. echo "-123 +1234" | perl -wnE'@m = /(?<=[+-])([0-9]+)/g; say for @m'
  20.      
  21. echo "-123 +1234" | perl -wnE'@m = /[+-]([0-9]+)/g; say for @m'
  22.      
  23. echo '-123 +1234 456' | grep -oP '(?<=-|+)d+'
  24. 123
  25. 1234
  26.      
  27. echo '-123 +1234 456' | grep -Eo 'b[0-9]+b'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top