Jump to content

Simple Regex Help


vhaxu

Recommended Posts

Quick explanation of that pattern:

 

 

<meta property="x" content="([^"]+)" />

 

Match the characters “<meta property="x" content="” literally

Match the regular expression below and capture its match into backreference number 1 «([^"]+)»

  Match any character that is NOT a “"” «[^"]+»

      Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»

Match the characters “" />” literally

Link to comment
https://forums.phpfreaks.com/topic/204536-simple-regex-help/#findComment-1072231
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.