Jump to content

[SOLVED] Expression Modification


ballouta

Recommended Posts

Hello

I have this old expression:

<?php
$Email_Comments = "Error processing your order for ASK file: 352946020686265.ask!";
$matches = "ask";
preg_match('/\S+\.ask(?=!)/i', $Email_Comments, $matches);
$filename = $matches[0];
?>

 

Now the $Email_Comments format has been changed,

<?php
$Email_Comments = "This is an automatically generated email. DO NOT answer it!

File: a.ask
ERROR: Unsupported ASIC number! ()";
?>

 

Kindly I need to update my expression.

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/128182-solved-expression-modification/
Share on other sites

Yes it is working 100%

 

Kindly another help:

 

if the $Email_comments this time is:

 

This is an automatically generated email. DO NOT answer it!

 

 

File: 35551301328124x.ask - processed successfully!

 

the file name in red is needed.

 

thank you

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.