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

how to separate mentions and text message any function or we have to write a regex ? #193

Open
hunainabbasi opened this issue Apr 24, 2020 · 1 comment

Comments

@hunainabbasi
Copy link

No description provided.

@Mahmood-Hussain
Copy link

Mahmood-Hussain commented Apr 28, 2020

Get markup

$(element).mentionsInput("val", function (text) { markup = text; // Send this to server side and apply regex to markup });

Regex to get mentions text
~(@)\\[(.*?)\\]\\((.*?):(.*?)\\)~

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

No branches or pull requests

2 participants