![]() |
bash regex or sed help
never done regex in bash before, what im bascially trying to do is this perl/php regex
/(\d+)_\d+_\d+[_a-z]*\.jpg/i what is gets is the facebook profile id, from a facebook image. http://a1.sphotos.ak.fbcdn.net/hphot...20 4038_n.jpg would get 80329313253 in php preg_match('/(\d+)_\d+_\d+[_a-z]*\.jpg/i',$url,$matches); match[1] would be the fb id |
actually figured out doing command substituion
Code:
#!/bin/bash |
|
Quote:
Quote:
|
All times are GMT -7. The time now is 05:07 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc