Archive

Archive for the ‘RegEx’ Category

Convert Text File To Mysql Database

February 5th, 2012 Comments off

I have a text file containing info.
I need for it to be converted into a MySQL database.

Here is the format of each entry (3 lines)

LastName, Firstname MiddleInitial……………[Code] BusinessName (LocationCode)………………………………………………….O:
SecondFullName Address, City ZipCode-ZipExtended……………………………H: (xxx) PhoneNumber
C: (xxx) CellNumber EmailAddress

Each entry may or may not contain any of this information.

It is very im…

Regex Needed For Time Based Email Redirection

January 19th, 2012 Comments off

Hello,
We need to have emails redirected using our webhost’s Cpanel user level email filter. The parameters we need are:
emails sent to address A need to be redirected to address B Sunday -Friday from 1am to 8am AND Saturday-Sunday from 3am to 8am.
Cpanel allows us to create a filter via RegEx, that we could use match email headers.

Website Parsing Script Need Updated 2

January 16th, 2012 Comments off

Website changed layout and script needs updated.

Update Regex In Website Scraping Scripts

January 16th, 2012 Comments off

2 website scraper scripts need regex updated due to websites changing layout

Website Parsing Script Need Updated

January 16th, 2012 Comments off

Website changed layout and script needs updated.

Php – Regex Web Form App – .txt File Parser – .txt Output

November 11th, 2011 Comments off

Job Description

- Create a PHP Web form based app that will allow user[s] to upload .txt files into a server directory.

– Parse the contents of the .txt files – store the data in msysql db

– Return and Display the parsed data in a web form for copy / paste functions

– Also give user the ability to “Save” the parsed/extracted data to .txt files on server or local user machine

– create a 2nd web form where users can input 3-5 strings of text data into web form fields and create multiple fields of text strings to be written into the same database and output in the same fashion as the above “parsed / extracted” data from the existing .txt files

Team Requirements:
- Daily updates
- Punctuality
- Stable High Speed Internet
- Adequate Project and Code documentation
- Problem Solving Mindset
- Able to Follow Direction and ask questions if needed
- Self Reliance

There is a substantial workload for the long term for the right candidate who is self motivated – self directed and at the top of their game. Its not just a plugin – its more like a complete multi phased application developed on top of the wordpress engine.

If you are not proficient in PHP Scripting and or Regex functions – and the basics of regex for text string parsing – this is NOT a project to try and learn on the job and waste both of our time. Show up ready to put those mastered skills to work from day one.
Skills Required:

PHP, mySQL, HTML, Web Forms, .txt Files, RegEx Fuctions and Data Parsers

Regex Work – For Scraping 3 Websites 2

October 29th, 2011 Comments off

The work is to scrape 7-8 pieces of information from daily deal websites. I don’t need anything else except for the expression text. From past experience with previous developers doing this work for me, it takes about 15-20 minutes at most to get the reg expressions for each site.

Please send a PMB confirming you have done this before. Before selecting a bidder I will do a sample test so I know you can do this well.

Thanks for your bid in advance.

Regex Work – For Scraping 3 Websites

October 28th, 2011 Comments off

The work is to scrape 7-8 pieces of information from daily deal websites. I don’t need anything else except for the expression text. From past experience with previous developers doing this work for me, it takes about 15-20 minutes at most to get the reg expressions for each site.

Please send a PMB confirming you have done this before. Before selecting a bidder I will do a sample test so I know you can do this well.

Thanks for your bid in advance.

Agriya Yipit (feedy) Code Modification

October 8th, 2011 Comments off

Please do not apply unless you have experience with Agriya’s framework, particularly the Yipit clone. I have several issues that I need help fixing.

Here are the issues we are having.

The script should (optionally) be able to fetch XML elements within <deal> based on XPATH because sometimes a script may contain XML elements with same name but different parent.

For saveology, if business link is not there to display deal, extract business link from affiliate (buy link)

If some XML element is missing in a deal that feedy scripts considers mandatory, that deal should be skipped instead of breaking the whole process.

Proper values of discounted value, discount % should be visible instead of 0.

For some retailers discount % is available in the title instead of a separate XML element. We may extract this value (using preg_match) from title and calculate discounted price.

Especially for CJ) The filtering of deals based on cities should be fixed. Stop random assignment of cities to deals. May use CJ feeds instead of product search API as feeds normally provide city information. ref TicketId=1202

Fix Php File . . . Regex

October 7th, 2011 Comments off

I have a PHP script, but has bugs.

Someone told me it has something to do with regex.

I would like to have it fixed.

There is a txt file attached to this post, it should have all info you will need.

Categories: Bug, Fix, PHP, RegEx Tags: , , , , , ,

Simple Php Regex Script

September 21st, 2011 Comments off

I need a script that would find <form>, <input type=”hidden”, <input type=”text” and <input type=”submit” in a given piece of text (aka html form code).

it would then change the value=”" parameter for text fields to xyz and output these found form elements in order.

I’ll provide you with sample string for testing.

Regular Expressions To Parse Content From Other Websites

August 21st, 2011 Comments off

Relatively straight-forward project. I need someone to build Regular Expressions (regex) to parse content from about 3-4 different websites. There are only about 6-8 pieces of content that need to be fetched per site and will all be similar across the websites.

Please send a PMB confirming you have done this before with samples if possible. Before selecting a bidder I will do a sample test so I know you can do this well.

Each should take a maximum of 15-30 minutes to do if you are experienced with RegExes. Kindly mention in PMB your charge per regex site.

Fail2ban Need Regex Rule For Custom Filter

August 2nd, 2011 Comments off

I am configuring fail2ban to process a log file that is not part of the normal fail2ban filters. An example of a log entry would be:

[Aug 02 15:53:04] err: bad or missing CDX header refused connect from 98.165.54.217:50692 [l:980]

Please do not bid if you can’t do this it’s one line of regex that is specific to a fail2ban filter file.

I’m looking at $5 or so USD no more

Scrape Api For Business Info For Php Mysql On A Linux Server

July 12th, 2011 Comments off

Scrape company API for business info for PHP MySQL on a Linux Server

Php Mysql On A Linux Server Using Proxy And Regex 2

May 23rd, 2011 Comments off

Need some quick fixes for project that was developed in PHP and using a MySQL Database running on a Linux Server as a Cron job, this also uses proxies to download the data.
I need to transfer and translate data accurately from one table to another.
The data is business listing info. It has to be transfered to the proper tables in my database.
The data includes business name, address, tel. hours of operation , delivery and services.
When full tested the transfer should be automated

Regex Guru

May 22nd, 2011 Comments off

I use HTML Purifier for user input sanitizing. I want to allow users to use code from playlist.com in their profiles on my website. In order to do that I have to make what they entered safe.

Previously I was able to use the Playlist.php file (attached) with HTML Purifier. Now it seems it doesn’t work because playlist.com changed their code and the filter doesn’t work the same any longer.

Here is the code that the user will copy/paste into their profile on my website:

<img style=”visibility:hidden;width:0px;height:0px;” border=0 width=0 height=0 src=”http://c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEzMDYwMjM1Mzk4NDMmcHQ9MTMwNjAyMzU*NDU*NiZwPTY5NDMwMSZkPSZnPTEmbz*3NWQ4YWMyM2JhOTk*Y2E2OTU1/NWZjNjEyMmQ1ZjkzNSZvZj*w.gif” /><div style=”text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;”> <object width=”450″ height=”470″> <param name=”movie” value=”http://www.playlistproject.net/mc/mp3player_new.swf”></param> <param name=”allowscriptaccess” value=”never”></param> <param name=”wmode” value=”transparent”></param> <param name=”flashvars” value=”config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_green_shuffle.xml&mywidth=450&myheight=470&playlist_url=http%3A%2F%2Fwww.playlistproject.net%2Fpl.php%3Fplaylist%3D27578280%26t%3D1306023535&wid=os”></param> <embed style=”width:450px; visibility:visible; height:470px;” allowScriptAccess=”never” src=”http://www.playlistproject.net/mc/mp3player_new.swf” flashvars=”config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_green_shuffle.xml&mywidth=450&myheight=470&playlist_url=http%3A%2F%2Fwww.playlistproject.net%2Fpl.php%3Fplaylist%3D27578280%26t%3D1306023535&wid=os” width=”450″ height=”470″ name=”mp3player” wmode=”transparent” type=”application/x-shockwave-flash” border=”0″/> </object> <br/> <a href=”http://www.playlistproject.net”><img src=”http://www.playlistproject.net/mc/images/create_green.jpg” border=”0″ alt=”Get a playlist!”/></a> <a href=”http://www.playlistproject.net/playlist/7060039691/standalone” target=”_blank”><img src=”http://www.playlistproject.net/mc/images/launch_green.jpg” border=”0″ alt=”Standalone player”/></a> <a href=”http://www.playlistproject.net/playlist/7060039691/download”><img src=”http://www.playlistproject.net/mc/images/get_green.jpg” border=”0″ alt=”Get Ringtones”/></a> </div>

Now I am attaching the file that contains some regex conditions. Are you able to make the modifications necessary so that we can get this working again? As I said it once worked, but playlist.com changed the code that you copy/paste, so now it doesn’t work anymore. It just needs some modifications.

Thanks in advance

Regex Guru

May 21st, 2011 Comments off

I use HTML Purifier for user input sanitizing. I want to allow users to use code from playlist.com in their profiles on my website. In order to do that I have to make what they entered safe.

Previously I was able to use the Playlist.php file (attached) with HTML Purifier. Now it seems it doesn’t work because playlist.com changed their code and the filter doesn’t work the same any longer.

Here is the code that the user will copy/paste into their profile on my website:

<img style=”visibility:hidden;width:0px;height:0px;” border=0 width=0 height=0 src=”http://c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEzMDYwMjM1Mzk4NDMmcHQ9MTMwNjAyMzU*NDU*NiZwPTY5NDMwMSZkPSZnPTEmbz*3NWQ4YWMyM2JhOTk*Y2E2OTU1/NWZjNjEyMmQ1ZjkzNSZvZj*w.gif” /><div style=”text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;”> <object width=”450″ height=”470″> <param name=”movie” value=”http://www.playlistproject.net/mc/mp3player_new.swf”></param> <param name=”allowscriptaccess” value=”never”></param> <param name=”wmode” value=”transparent”></param> <param name=”flashvars” value=”config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_green_shuffle.xml&mywidth=450&myheight=470&playlist_url=http%3A%2F%2Fwww.playlistproject.net%2Fpl.php%3Fplaylist%3D27578280%26t%3D1306023535&wid=os”></param> <embed style=”width:450px; visibility:visible; height:470px;” allowScriptAccess=”never” src=”http://www.playlistproject.net/mc/mp3player_new.swf” flashvars=”config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_green_shuffle.xml&mywidth=450&myheight=470&playlist_url=http%3A%2F%2Fwww.playlistproject.net%2Fpl.php%3Fplaylist%3D27578280%26t%3D1306023535&wid=os” width=”450″ height=”470″ name=”mp3player” wmode=”transparent” type=”application/x-shockwave-flash” border=”0″/> </object> <br/> <a href=”http://www.playlistproject.net”><img src=”http://www.playlistproject.net/mc/images/create_green.jpg” border=”0″ alt=”Get a playlist!”/></a> <a href=”http://www.playlistproject.net/playlist/7060039691/standalone” target=”_blank”><img src=”http://www.playlistproject.net/mc/images/launch_green.jpg” border=”0″ alt=”Standalone player”/></a> <a href=”http://www.playlistproject.net/playlist/7060039691/download”><img src=”http://www.playlistproject.net/mc/images/get_green.jpg” border=”0″ alt=”Get Ringtones”/></a> </div>

Now I am attaching the file that contains some regex conditions. Are you able to make the modifications necessary so that we can get this working again? As I said it once worked, but playlist.com changed the code that you copy/paste, so now it doesn’t work anymore. It just needs some modifications.

Thanks in advance

Php Mysql On A Linux Server Using Proxy And Regex 2

May 2nd, 2011 Comments off

Need some quick fixes for project that was developed in PHP and using a MySQL Database running on a Linux Server as a Cron job, this also uses proxies to download the data.
I need to transfer and translate data accurately from one table to another.
The data is business listing info. It has to be transfered to the proper tables in my database.
The data includes business name, address, tel. hours of operation , delivery and services.
When full tested the transfer should be automated

Php Mysql On A Linux Server Using Proxy And Regex

April 30th, 2011 Comments off

Need some quick fixes for project that was developed in PHP and using a MySQL Database running on a Linux Server as a Cron job, this also uses proxies to download the data.
I need to transfer and translate data accurately from one table to another.
The data is business listing info. It has to be transfered to the proper tables in my database.
The data includes business name, address, tel. hours of operation , delivery and services.
When full tested the transfer should be automated

Php Mysql On A Linux Server Using Proxy And Regex

April 8th, 2011 Comments off

Need some quick fixes for project that was developed in PHP and using a MySQL Database running on a Linux Server as a Cron job, this also uses proxies to download the data.

Categories: Cron, Linux, MySQL, PHP, Proxy, RegEx, Server Tags: , , , , , ,
Bear