Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(export )?const (.* \= \()(.*)(\).*\()(?'fileContent'(\n.*)+)\3\.(?'varName'[^}]*)\}(?'restOfPropLine'.*$)(?'restOfFileContent'(\n.*)+>\n\);)
/
gm
Input 1
export const AffiliateAccountBIFields = (props) => ( <SimpleShowLayout {...props} variant="one"> <UrlField source="bi_url" options={{ target: '_blank' }} /> <ProtectedBIConfigField source="bi_settings" /> </SimpleShowLayout> ); export const AffiliateAccountGeneralFields = (props) => ( <SimpleShowLayout {...props}> <TextField source="name" /> <ReferenceField linkType="show" label="Platform Provider" addLabel source="platform_provider_id" reference="accounts/platform-providers" allowEmpty > <TextField addLabel source="name" /> </ReferenceField> <ReferenceField label="Company" addLabel source="company_id" reference="companies" linkType="show" > <TextField addLabel source="name" /> </ReferenceField> <AccountManagerField label="Account Manager" source="account_manager_id" addLabel /> <PortfolioField label="Portfolio" source="portfolio_id" add
Extraction
export const AffiliateAccountBIFields = (props) => ( <SimpleShowLayout {...props} variant="one"> <UrlField source="bi_url" options={{ target: '_blank' }} /> <ProtectedBIConfigField source="bi_settings" /> </SimpleShowLayout> ); export const AffiliateAccountGeneralFields = (props) => ( <SimpleShowLayout {...props}> <TextField source="name" /> <ReferenceField linkType="show" label="Platform Provider" addLabel source="platform_provider_id" reference="accounts/platform-providers" allowEmpty > <TextField addLabel source="name" /> </ReferenceField> <ReferenceField label="Company" addLabel source="company_id" reference="companies" linkType="show" > <TextField addLabel source="name" /> </ReferenceField> <AccountManagerField label="Account Manager" source="account_manager_id" addLabel /> <PortfolioField label="Portfolio" source="portfolio_id" add