Jump to content

Regex-get integer between tags


rupam_jaiswal

Recommended Posts

Hi,

Please excuse if similar issue has been posted earlier.

My data is like

 

I am going [ABCDEF]123[/ABCDEF] to movie.

I want a regex to get the value between [ABCDEF] and [/ABCDEF] only if its integer.

eg if its [ABCDEF]junk characters[/ABCDEF] then I dont want...but if its [ABCDEF]123[/ABCDEF]

then I require 123

 

Regards

Link to comment
https://forums.phpfreaks.com/topic/188020-regex-get-integer-between-tags/
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.