Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

PHP Regexp - quick advice needed

Hi !
I have a blobdata in a MS SQL server containing the rubbish below:
@¬ýýýO_TRG_11ýýýýýýýýýØ
)ýýýýýýýýýýýýýýýýýýýýý\\trg4\eh_shared\input\78-268P02475923.tifýýýýýç ý¬ýýý*ý!ýÿý

I need to extract the string "\\trg4\eh_shared\input\78-268P02475923.tif" - and nothing else...

I need a PHP function that will return this - who can help me ??

RegEXP or anything goes :-)
0
trg_dk
Asked:
trg_dk
  • 2
1 Solution
 
Ivo StoykovCommented:
hi
try this

$a = "@¬ýýýO_TRG_11ýýýýýýýýýØ
)ýýýýýýýýýýýýýýýýýýýýý\\trg4\eh_shared\input\78-268P02475923.tifýýýýýç ý¬ýýý*ý!ýÿý";
preg_match("(\\\\.+tif)", $a, $res);
echo($res[0]);

Open in new window

0
 
trg_dkAuthor Commented:
GREAT :-)

Thank you so much !!!!!
0
 
trg_dkAuthor Commented:
Thanks for the quick turnaround !!
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now