We have some form data which flows from our CMS into our CRM. The data captured in the CRM contains HTML elements like this.
<dl><dt>First Name:</dt><dd>Joe</dd>
<dt>Last Name:</dt><dd>Blogs</dd>
<dt>Personal Email:</dt>
<dd>joe.bloggs@exampleEmail.com</dd>
<dt>Most recent job title:</dt>
<dd>Manager</dd>
<dt> Level of membership you are applying for:</dt>
<dd>Full Member</dd>
I've played around with substrings but can only get as far as the first name. Shorter name either with the next string or longer names need more character length.
substring(fieldname, 29, 15) as FirstName,
Results
- Joe (Too long)
- Anne-Mar (too short)
Is there another way or way of capturing between specific text?