How do I make a Slash able to be used in this Metachar String:
/@(\w+)\b/gi
That is supposed to find the "Text"(@text) This is a test @Text I agree And it does. But now I wan't the same thing for somthing that uses a /
How do I make a Slash able to be used in this Metachar String:
/@(\w+)\b/gi
That is supposed to find the "Text"(@text) This is a test @Text I agree And it does. But now I wan't the same thing for somthing that uses a /
You need to escape the slash so it is not interpreted as denoting special meaning. Escaping means prefixing with a backslash, so you just need two together. Adapting your existing example:
/@([\w\/]+)\b/gi
You're now allowing alphanumeric and slash characters (hence the need for a "range" of characters, denoted by square brackets.)