- XF Compatibility
- 2.3.x
- Short Description
- Custom Field Regex Capture for user, thread, resource, and media fields. Easily extract video IDs from YouTube URLs with custom display options. Download now!
Make custom field regex captures accessible to value and wrapper display HTML options; works with user, thread, resource, and media fields. For example, you can extract video ID's from regex URL fields.
Get a free download of Custom Field Regex Capture from here? Because this resource was immediately available as of 2025-06-27
custom field regex:
Custom field wrapper display HTML:
Get a free download of Custom Field Regex Capture from here? Because this resource was immediately available as of 2025-06-27
custom field regex:
Code:
(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))(?<videoId>[\w-]{11})(?![\w-])
Custom field wrapper display HTML:
Code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/{$videoId}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>