Jump to content

[SOLVED] Is this a regex job?


liamthebof

Recommended Posts

The_egg_man</h3><pre>27676

Thats the input string.

 

I want the number, knowing that the length and value of the 'The_egg_man' can change and so can the number.

 

I have tried using preg_match with (\d+) and ([0-9]+) with no avail though no doubt I'm doing it wrong.

 

Any help appreciated, thanks.

Link to comment
https://forums.phpfreaks.com/topic/120889-solved-is-this-a-regex-job/
Share on other sites

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.