Jump to content
UBot Underground

need a little help with a match


Recommended Posts

Hi,

 

Using your sample this code:

set(#pninput, "[\"(212) 733-1300\"]", "Global")
set(#pn, $replace($find regular expression(#pninput, "(\\d\{3,4\})"), $new line, $nothing), "Global")

would give you 2127331300

 

Kevin

  • Like 1
Link to post
Share on other sites

Thanks for the reply Kev, that sort of works but I guess I should have been more clear. I scraped the page and save the results to a variable from that variable Im pulling the address etc. BUT no dice on phone number..

 

Using this

 

using your code it gives a ton of numbers in no order.
 

variable data looks like this mess: (wont let me post it) :(

 

Link to post
Share on other sites

Works but pulls way too much data, now that I know the syntax for the brackets should be good to figure this one out. Thanks for your help.

 

No prob. Good luck.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...