ExpressionEngine 7.5 has been Released! Learn More!
If a file URL variable has a pattern that looks like pound sign + number, I want to know that and act differently. In that case I also need to pull the number out and insert it into a URL.
My pseudo code would look something like this:
{if file_link matches regex /#%d/ }
<td><a href="http://someotherurl.com/{file_link_regex_result}">{file_link_title}</a></td>
{if:else}
<td><a href="http://{file_link}">{file_link_title}</a></td>
{/if}
` How can I accomplish this?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.