Hi, and welcome to LQ!
Quote:
Originally posted by Joey^s
How do I check if entered strings are valid emails or urls?
|
Read the relevant RFCs to determine what
comprises a valid e-mail address or URL, and
then use an appropriate regular expression :)
Something like
egrep -e "[a-zA-Z]+([[:alnum:]]|[.-])*@[a-zA-Z]+([[:alnum:]]|[.-])\.[a-zA-Z]+[[:alnum:]]*"
MAY do the trick, I didn't even bother trying to test
it, but you get the idea...
Quote:
How would I search and display the variables, of a string that contains variables seperated by ^?
For example, how would I search all the strings with a variable 1 in this file, and then display each number as a seperate variable
2^1^4^5^7
3^7^^4^9^0
3^1^2^7
|
Sorry, I can't understand what you're trying to
achieve at all ...
Cheers,
Tink