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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.