Remove hastag/pound/octothorpe from string in R

h.l.m

I have a string which has a hastag/pound/octothorpe in it, and want it removed using a regex expression.

e.g.

iii <- '#lkdjljf, lkdflsdkf'

i would like a gsub(regex_bit_here,'',iii)

to remove the hastag/pound/octothorpe

Thanks

Imran Ali

I have triedgsub("^#",'',iii), and it works

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

remove emoji from string in R

From Dev

Remove numbers from string in R

From Dev

R remove only "[" "]" from string

From Dev

remove emoji from string in R

From Dev

remove r n r n from string

From Dev

How to remove + (plus sign) from string in R?

From Dev

R regex: remove times from character string

From Dev

Remove leading backslash from string R

From Dev

R remove first character from string

From Dev

Remove specified pattern from string in R

From Dev

Remove \r and \n from AES encrypted string

From Dev

R - Regex to Remove Last Word from String

From Dev

How to remove a specific pattern from a string in R?

From Dev

R - remove anything after number from string

From Dev

How to remove \n and \r from a string

From Dev

How to remove single quote from a string in R?

From Dev

How to remove a specific pattern from a string in R?

From Dev

Remove specified pattern from string in R

From Dev

How to remove '\' from a string using R?

From Dev

Remove characters from a string BEFORE a word (in R)

From Dev

Remove US zip codes from a string: R regex

From Dev

remove all line breaks (enter symbols) from the string using R

From Dev

How to remove only "actual numbers" from a string of characters in R

From Dev

R: Remove leading zeroes from the beginning of a character string

From Dev

How do I remove \r\n from string in C#?

From Dev

Remove everything except period and numbers from string regex in R

From Dev

how to remove special characters and number patterns from a string in R

From Dev

How do I remove \r\n from string in C#?

From Dev

R - Concatenate string from dataframe and remove html tags

Related Related

HotTag

Archive