Search the Community
Showing results for tags 'Regular Expression'.
-
So I have this data: nr@id,alex@gmail.com,abc@abc.gif,scrappy@2x-5ca495c2.png,nr@wrapp,info@rexgc.com,2abc@abc.jpg,info@CarolineLabiner.com,104271145@N04,raster@2x.png,nr@wrapped Is there one regex code that can remove all the non-email from the data? These are the non-emails: nr@id, abc@agc.gif, scrappy@2x-5ca495c2.png, nr@wrapp,2abc@abc.jpg,104271145@N04,raster@2x.png,nr@wrapped Only alex@gmail.com,info@rexgc.com,info@carolinelabiner.com are actual emails I want to keep. Thanks in advance.
-
What is the difference between these 3 options and when do you use them? Problem I'm having: need to scrape an attribute from a page for multiple accounts, but with the same script, how do you do this? If there's a log in error, need to scrape the domain name that is having the error and add it to a list to send to the user so they know there's been a log in error for that domain. When I do something simple like $scrape attribute(href"http://www.domain.com") the href area populates with the specific domain in the script that has the log in error. So, when another domain using the same scr
- 2 replies
-
- Wildcard
- Regular expression
-
(and 2 more)
Tagged with:
-
I want to implement a database search that is insensitive to plural/singular, order and case of the words used in an input string. I am using MySQL database. For example if the input string is: "woman looking for a desktop, Printers and laptopS" the search must return all rows that contain any of the following words in any order and whether they contain upper or lower case letters: woman women desktop desktops printer printers laptop laptops How do I do this? MySQL fulltext search cannot handle the plural/singular and regular expressions in MySQL are sensitive to the order of the words.
-
- Search
- Regular Expression
-
(and 3 more)
Tagged with:
-
Hi, I'm trying to use the regular expression functions, but they seem not to do anything. I might use them wrong. Here's my code: set(#test, "28/05/201323:00", "Global") set(#test2, $replace regular expression(#test, "[0-9]{2}[\\/][0-9]{2}[\\/][0-9]{4}", "I like"), "Global") set(#test3, $find regular expression(#test, "[0-9]{2}[\\/][0-9]{2}[\\/][0-9]{4}"), "Global") What I would expect is: #test2 => I like23:00 #test3 => 28/05/2013 (there's no space between the date and the time for a reason). Any idea why this doesn't work?
-
I tried a few things but can't get it to work. What i want to do is loading a page, then using a regular expression that scrapes a particular strings (let's say phone number for example) and add that to a list. I need to scrape this way, because $scrape page or $scrape attribute is not possible on this particular site. So what i want is the webpage loads, it checks whether a particular string is present anywhere on the page, if yes then scrape that string and add it to a list.