Getting the regular expression from the given text

Hi

I need to develope an application which can convert the given text into the regular expression. I need that when i enter any text in textarea that should be translated into regular expression in another panel. but i could not find the method or technique which can do so. plz help me to resolve this issue.

Thanks Imran khan.

[348 byte] By [immyhumia] at [2007-11-26 17:04:05]
# 1

well, there are an infinite number of regular expressions for an arbitrary piece of text, so you will have to qualify in your mind what the purpose of the regular expression is.

For instance, it is trivial to create a regex for a string just by copying the input text, and inserting \ before any special characters. But this pattern would probably be quite silly.

dmbdmba at 2007-7-8 23:31:51 > top of Java-index,Java Essentials,Java Programming...