Jump to content

Help with expression


ngreenwood6

Recommended Posts

I came up with this solution all on my own knowing no regex at all :)

 

'/(\[)(adapter)(=\")(.*)(\"\])/i'

 

All I wanted this to do was match this: [adapter=test] or this:[adapter=""].

 

I was just wondering if there is a better way to do this and to match it on this as well [adapter] because currently it wont match that.

Link to comment
https://forums.phpfreaks.com/topic/209942-help-with-expression/
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.