Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<a> tag fix #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

<a> tag fix #1

wants to merge 1 commit into from

Conversation

stefanpejcic
Copy link

@stefanpejcic stefanpejcic commented Jan 19, 2023

Make sure that the mentions of "Bitcoin" or "BTC" that you want to replace are not within an tag

The lookahead (?<!<a[^>]*>) asserts that the match will not be preceded by an opening <a> tag, and the lookahead (?![^<]*</a>) asserts that the match will not be followed by a closing </a> tag. This will ensure that the replacement will only occur outside of tags.

Make sure that the mentions of "Bitcoin" or "BTC" that you want to replace are not within an <a> tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant