User Profile

Collapse

Profile Sidebar

Collapse
MrVon
MrVon
Last Activity: Dec 17 '09, 05:23 AM
Joined: Nov 29 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • MrVon
    replied to Help writting simple regex
    in Perl
    Please problem is still unsolved, i need complete string of regular expression to use.

    Or can someone write REGEX that searches "Phone:" and then shows 14 characters that come after it as result, only thing it has to be one line.
    See more | Go to post

    Leave a comment:


  • MrVon
    replied to Help writting simple regex
    in Perl
    I dont have perl experience, program i use allow writting scripts in perl 5, its just string field where you can enter code you want to use, thats what program documentation saying.



    I need someone to edit code i posted in first message (that is actually works) to get not all phone numbers, but only ones with "Phone: " in front of it, can you suggest how this line of code should look like?...
    See more | Go to post

    Leave a comment:


  • MrVon
    replied to Help writting simple regex
    in Perl
    It looks like web page HTML with phone on it saying "Phone: (123) 456-7890" somewhere on the page.
    See more | Go to post

    Leave a comment:


  • MrVon
    replied to Help writting simple regex
    in Perl
    The thing is that i actually use program that supports perl 5 programming language regular expressions, so could you please help me just add to my line of code check for "Phone: " in beginning of number.
    See more | Go to post

    Leave a comment:


  • MrVon
    replied to Help writting simple regex
    in Perl
    It does not work for me, could you show me how full code will look like?
    See more | Go to post

    Leave a comment:


  • MrVon
    started a topic Help writting simple regex
    in Perl

    Help writting simple regex

    Hi, i trying to write regular expression that looking for phone number in text file, but only does it if there is "Phone: " in front of number on same line.

    Expression i created looks like this
    Code:
    (?:(?:\d{1,3}[-. ]?)?[(]?\d{2,4}(?:[-). ]|[)][ ]))?\d{1,4}[-. ]?\d{4}(?:[-/.* ]\d{1,5})?
    How i add "Phone: " check to it?
    See more | Go to post
No activity results to display
Show More
Working...