Re: parse website _cliptext for name, email, web URL, phone, cellphone, street, city, zip

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JJ (jjyg_at_adelphia.net)
Date: 02/16/05


Date: Wed, 16 Feb 2005 12:25:36 -0500


>Sorry, don't have anything to share but I think the way forward is to split
>the text up with the CHR(13) delimiters and then use regex to match the
>fields that aren't empty.

What is regex?

I'm running VFP 6

>I think you'll really struggle to see the difference between lines of an
>address and a name though. If you give me a foreign name and address all
>mixed up I couldn't do it myself [ie brainpower] so programming something is
>going to be even harder!

Conditional logic will go a long way for me.

Say a particular web site yields memlines=4 and I test that
mline(_cliptext,3) contains the word "Phone:" its a good bet that
_cliptext came from this particular web site and that would determine
the contents of Mline(_cliptext,1....2...4) etc.

I think I can get it to work, I'm just struggling with the best
approach.

John "J.J." Jackson



Relevant Pages

  • Re: grep and regex
    ... > I found the following regular expression on a web site ... > But i can't get it to work with grep: ... although your regex claims it is. ...
    (comp.unix.shell)
  • RE: Parse out data in a cell.
    ... What is the code to use regex? ... I went to the web site and I copied this ... string but how I add to my WIN FORM? ... > Hi Cadel, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Regex Websites
    ... I'm targeting on C# sythax for RegEx, not RegEx in general (eg.: Perl, ... PHP, etc.)... ... but there is one more excellent web site: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [PHP] preg_match() returns false but no documentation why
    ... You need delimiters around the regex, ... documentation. ... Although you don't need to use slashes, you can use any character ... want but you must escape it in if it appears in the regex. ...
    (php.general)
  • Re: [PHP] Removing UTF-8 from text
    ... http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php lists what the modifiers do. ... you can use anything as delimiters. ... Sometimes it's easier to change the delimiter rather than worrying about escaping it - for example when doing a regex for urls.. ...
    (php.general)