detect email addresses in flash
detect email addresses in flash
- Started
- Last post
- 2 Responses
- JamesEngage
Anyone know where I might find a function that will search through a block of text and detect if there is an email address/ or more in it and turn it into a link?
- JamesEngage0
cheers... I've managed a way of detecking them... split your textfield into an array using a space as a delimiter to create an array of phrases, then split each word using an @ as a delimeter... if this array has more than one item, and the length of the phrase in the original array is greater than say 5 characters it is an email address :)
Phew... probably a better way of doing this no doubt!