Following are the text samples I have:
text1 : "The salary is $34-$36" text2 : "The salary is $34.50-$36.20" text3 : "The salary is $45000-$34000" text4 : "The salary is $45-$34K"
So whenever I find patterns like $34-$36 or $34.50-$36.20 I need to add word hour to the text and whenever I find patterns like $45000-$34000 or $45-$34K I need to add word salary to text.
Can someone help me how to solve this in R using regular expressions?
Thank-you.