Jump to content

regex help needed


rashmi_k28

Recommended Posts

abc=1 nel='122,100549' est="off" ints='mor origin dive for bofa ers'

abc=['" ]?(.*?)['"]
ints=['" ]?(.*?)['"]

here result of first regex is "1 nel". How to get the result as 1.

 

Expectng result should be:

 

abc = 1

nel=122,100549

est=off

ints=mor origin dive for bofa ers

 

 

abc, nel and est and ints can be hardcoded in the regex. Please tell me how to get the result in the above format.

Link to comment
https://forums.phpfreaks.com/topic/294834-regex-help-needed/
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.