1,034 Topics

Member Avatar for
Member Avatar for 4789787

This is code for an internal forum, it works on my local server, but not the godaddy one i just purchased! phpinfo()s posted below: [CODE]<?php // forum.php :: Foro interno del juego.Version 1.0 define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; /* Este foro esta basado en el PHPBBs …

Member Avatar for chrishea
0
4K
Member Avatar for JeffOwens

Here is my code: [CODE] #------------------------------------------------------------------------------- # Name: Mocha Rotoscoping Via Blender # Purpose: Make rotoscoping more efficient # # Author: Jeff Owens # # Created: 11/07/2011 # Copyright: (c) jeff.owens 2011 # Licence: Grasshorse #------------------------------------------------------------------------------- #!/usr/bin/env python import sys import os import parser sys.path.append('Z:\_protomotion\Prog\HelperScripts') import GetDir sys.path.append('Z:/Blender_Roto') filename = …

Member Avatar for Enalicho
0
137
Member Avatar for Ender330

Hello, I need to find a way to use regex to exclude a phone number like this: +558499608822 I want any number that starts with the country code 55 to be excluded. For some reason \+55 does not work. Thanks for the help...

Member Avatar for pritaeas
0
69
Member Avatar for anjoz

Hi im trying to design a program that matches wildcards example the * , ?, [], {} etc but ive read that java has its own regex support I want to manually code the matching idont know where to start or how to do the program/ design it. Can you …

Member Avatar for Ezzaral
0
79
Member Avatar for [V]

I am trying to use a the re.sub() method. I have a string which I backreference with '\\1'. In my substitution parameter, is there anyway I can pass \\1 through a function? For example [CODE] output = re.sub(r'blah blah blah(\d+)','\\SOME_FUNCTION(\\1)',string) [/CODE] where any instance of (\d+) will replaced by the …

Member Avatar for Gribouillis
0
95
Member Avatar for Jsplinter

I've tested the following code in a console application, and it compiles just fine. However, when I copy it to a header to include in a larger project, I get 77 link errors, all related to boost. If I comment out the line in [COLOR="red"]red[/COLOR], everything compiles just fine without …

Member Avatar for pseudorandom21
0
451
Member Avatar for raghujosh

What would be a regex pattern for the following ' and ® in Java. I have tried the following but have not been successful 1.&#[0-1][0-1][0-1] 2.&#\d\d

Member Avatar for Ezzaral
0
66
Member Avatar for Jsplinter

I am following this [URL="http://www.boost.org/doc/libs/1_37_0/libs/serialization/doc/index.html"]example [/URL]to serialize an object with boost. However, I keep getting the same compile error: error C2248: 'boost::scoped_ptr<T>::scoped_ptr' : cannot access private member declared in class 'boost::scoped_ptr<T>' Any idea why? [CODE]// Console2.cpp : Defines the entry point for the console application. #pragma once #include "stdafx.h" #include …

Member Avatar for mitrmkar
0
378
Member Avatar for arindam31

Regular Expression (RE) They can be used with string operations. Using this, we specify the rules for the set of possible strings that we want to match (Searching for patterns in another string). Note : its finds FIRST instance of that pattern We can also use REs to modify a …

Member Avatar for arindam31
-1
239
Member Avatar for theharshest

I am using the following code to extract second name from the html having following kind of lines - <tr align="right"><td>3</td><td>Matthew</td><td>Brittany</td> So, I want to extract "Brittany" from the above line [CODE]for line in f: match3 = re.search(r'$([a-zA-Z]+)(</td>)',line) if match3: print match3.group(1)[/CODE] But this ain't working. Please help.

Member Avatar for Gribouillis
0
446
Member Avatar for knan

<text> <p><s id="s1"><ng><w pws="yes" id="w1" p="CD">25</w> <w l="woman" pws="yes" id="w4" p="NNP" common="true" headn="yes">Woman</w></ng> <vg tense="past" voice="act" asp="simple" modal="no"><w l="create" pws="yes" id="w10" p="VBD" headv="yes">created</w></vg> <pg><w pws="yes" id="w18" p="IN">for</w></pg> <ng><w vstem="succeed" l="success" pws="yes" id="w22" p="NN" headn="yes">success</w> <w l="barbie" pws="yes" id="w30" p="NN" headn="yes">barbie</w></ng> <ng><enamex type="location"><w l="reynold" pws="yes" id="w37" p="NNP" locname="single">Reynolds</w></enamex> <w l="sep" pws="yes" …

Member Avatar for snippsat
0
223
Member Avatar for triumphost

How do I call the function in the button section?? I tried doing target(); and got when the program ran, it gave me some exception thing.. [CODE] package smart; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import …

Member Avatar for triumphost
0
301
Member Avatar for tgreer

I think I've posted on this before, but I find the overall site categorization non-intuitive. "Software Development" vs. "Web Development" doesn't make sense to me. Web development IS software development. I propose the site be organized by software development languages and platforms. DHTML/AJAX includes working with XML/XSLT, so where do …

Member Avatar for tgreer
0
237
Member Avatar for Hummdis

I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is …

Member Avatar for Hummdis
0
248
Member Avatar for Lereyn

Hello, First of all, I would apologize about my english which is not very good ;) I'm a newbie in .NET, and I hope my code is correct :) I'm on a project which consist of going on websites and retrieiving informations based on the 'criterias' the user has given …

0
96
Member Avatar for stevanity

Can anyone please help me reduce this Regex? Alphabet : {1,0} 0+1(E)*0 Where E = epsilon. My guess is 0+10 but can it be further reduced??

0
63
Member Avatar for cjohnweb

So, I have this wordpress driven site, and I have a plugin written that runs when a post is viewed. The content of the post is loaded into $content. I also have a database of keywords and links to other posts on my site. I want to search the $content …

Member Avatar for cjohnweb
0
171
Member Avatar for jogesh_p

hello friends i am new in php, i tried a code to remove special characters into the string, i tried the following codes,, [code=php] $user = "some string here"; preg_match_all('/[^A-Z][^a-z_-][^0-9]/', $user, $result) [/code] but the problem is that if i give the string like : name@#$@$# it also accepted buy …

Member Avatar for jogesh_p
0
676
Member Avatar for Xcelled194

I need some help creating a regex. It seems like a simple problem, but I cannot, for the life of me, wrangle out the regex. All the regex should do is match an 'e' that is not preceed by a '', unless there is a space between them. Example: In …

Member Avatar for nezachem
0
84
Member Avatar for DILO3D

i have a following text in a file: host1 menu=gateway title=gateway host=192.168.0.1 host2 menu=xgateway title=xgateway host=192.168.0.2 host3 menu=ygateway title=ygateway host=192.168.0.3 I have to match the 3 lines folowing by "host2" . these lines need to be matched. host2 menu=xgateway title=xgateway host=192.168.0.2 I used this codes.But its not complete. Can anyone …

Member Avatar for ko ko
0
91
Member Avatar for Acidburn

Hi guys, I've been banging my head all day with this I've got a regular expression and im trying to extract a menu from the html page source to assert within a test. For the life of me i can't get it to work correctly. Here's the page source: <span …

Member Avatar for thines01
0
148
Member Avatar for raghujosh

I want to be able to match a HTML tag in a given string. The string could be like this [CODE]<a href = "http://learnmore.com">Learn </a>. [/CODE]I have a replace function that replaces the HTML tag with whitespace when I hard code the tag, but I want a regex pattern that …

Member Avatar for raghujosh
0
179
Member Avatar for pythonnoobie

I need to find a pattern of kind APP[a-z][a-z][0-9][0-9][0-9] in the body of HTML and then replace them with hyperlinks. I am using Beautiful Soup to replace as I am dealing with HTML content. For Eg: APPsd222 to [URL="http://www.dani.com/APPsd222"]APPsd222[/URL] APPfd333 to [URL="http://www.dani.com/APPfd333"]APPsd333[/URL] If you are not aware about Beautiful Soup, …

Member Avatar for pythonnoobie
0
241
Member Avatar for complete

I have a regular expression (regex) question... How would I use regular expressions to remove the contents in parenthesis in a string in C# like this: "SOMETHING (#2)" The part of the string I want to remove always appears within paranthesis and they are always # followed by some number. …

Member Avatar for kvprajapati
0
176
Member Avatar for Danny159

Hey, I have the following script... [CODE]if(!opendir($image_dir)){ echo info_msg("Ooops... This Album contains no images"); }else{ /* step one: read directory, make array of files */ if ($handle = opendir($image_dir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && preg_match("/t/",$file) && $file != …

Member Avatar for pritaeas
0
208
Member Avatar for awslc

Hey guys, Just wondering if you could assist me quickly with some validation. I have some strings in for the format: MM:SS.mm Where MM = Minutes, SS = Seconds, mm = Milliseconds. I'm just wondering whether you can help me with how to validate to ensure an input string is …

Member Avatar for awslc
0
353
Member Avatar for PythonNewbie2

Let's say I have a text file with these contents: [CODE] color1 = yellow.$199 * 100 color2 = red.$1 * 22 myNextColor = green.$3 whatsNext = blue.$$ oneMore = orange.$ [/CODE] I need to be able to get an array like this: [CODE]colorsInFile = ["yellow","red","green","blue","orange"][/CODE] In python, the regex for …

Member Avatar for AhmedGhazey
0
165
Member Avatar for cjohnweb

Hello! I've come across a little problem with Regex, I was hoping someone might see the problem off hand. Here is some sample content I am searching through, It's the gameshark codes for PEC: [code] #Ace Combat 3 Electrosphere#SLPS-02021#SLPS-02020 §N Joker Command D00BF32E ???? "Infinite Time for battle D0054332 2442 …

Member Avatar for cjohnweb
0
119
Member Avatar for terabyte

I'm trying to convert html to plain text (remove all html tags) I don't want to use regex so I tried the module HTML::Parser and tried the parse() function but i got this error [CODE]Undefined subroutine &main::start called at getwords.pl line 27. [/CODE] and as a matter of fact I …

Member Avatar for d5e5
0
277
Member Avatar for haimz

Hello evryone i need aregex code that replacing url: [url]http://domain.com[/url] [B]at [/B] link: <a href="http://domain.com" rel="nofollow">http://domain.com</a> replace the url until space

Member Avatar for diafol
0
359
Member Avatar for Stefano Mtangoo

Friends, I'm rushing towards deadline and I think that makes me do childish mistakes. Here I have validation that requires regex and each time I input valid expression preg_match returns false. It is long now I'm trying to spot error but I cannot! I have googled and AFAICS, things seems …

Member Avatar for Stefano Mtangoo
0
163
Member Avatar for haimz
Member Avatar for edwinhermann
0
98
Member Avatar for Kiah07

I need some help with some code. I'm using boost filesystem library V3 c++. I am using an iterator to list files and directories recursively. My program runs perfectly until it scans the "System Volume Information" directory on Windows machines. At that point the program throws an exception because it …

Member Avatar for pseudorandom21
0
522
Member Avatar for Huakalero

In the line 72 of the code i do a findAll to retrieve all 'a' tags that have a 'horariosCarteleraUnderline' class and that have an href url that contains `?ic=[code]&` where code is a common code used to identifie the movie start time. It should retrieve all movie times, but …

Member Avatar for Huakalero
0
222
Member Avatar for ppetree

[B]Problem:[/B] I have a zip_code/city/state table that has full names and abbreviations for some common things like FT (FORT) and IS (ISLAND). So, I may have a record something like this: zip = '31522' city = '[COLOR="red"]IS [/COLOR]HARBOR POINTE' locationtext = 'Is Harbor Pointe' location = 'US-GA-[COLOR="red"]IS [/COLOR]HARBOR POINTE' and …

Member Avatar for smantscheff
0
121
Member Avatar for klemme

Hi guys, It is working fine, and only allowing letters and numbers. I want to a feature, so that it has to be between 3-20 charachters/numbers long. [CODE] if (!preg_match("/^[A-Za-z0-9]+$/i", $_POST['brugernavn'])){ $dosomething = ''; } [/CODE] This is not working: [CODE] if (!preg_match("/^[A-Za-z0-9]{3-20}+$/i", $_POST['brugernavn'])) [/CODE]

Member Avatar for klemme
0
4K
Member Avatar for s1w

Problem looks easy. I havent issue like this in other languages, I cant find reason. PythonScript for Notepad++: non-greedy html comment removal for entity: <!-- <input id="file_upload" type="file"/> --> ass --> python script: (?P<begin> and ?P<end> group names are for clearness) [code]import re line = editor.getCurLine() p = re.compile('(?P<begin><!--+)(?P<between>.*?)(?P<end>--+>)') if …

Member Avatar for s1w
0
204
Member Avatar for gspeedtech

I am working with existing VB.NET code for a Windows Application that uses StreamWriter and Serializer to output an XML document of transaction data. Code below. [COLOR="Green"] [CODE]Private TransactionFile As ProjectSchema.TransactionFile Dim Serializer As New Xml.Serialization.XmlSerializer(GetType(ProjectSchema.TransactionFile)) Dim Writer As TextWriter Dim FilePath As String Writer = New StreamWriter(FilePath) Serializer.Serialize(Writer, TransactionFile) …

Member Avatar for gspeedtech
0
190
Member Avatar for dubery

Hi all, I have been trying to remove the URLS with [url]http://www.CHickenHead.com[/url] that have areguments ?s= and ?sul= fromt some text. I can remove them but it is not case insensitive on the domain name part. How can I modify this regex? I have tried (chickenHead.com)i but this doesen't work. …

Member Avatar for dubery
0
326
Member Avatar for buster2209

I'm having a real difficult time getting two threads to run simultaneously..... Both of the threads contain 'do while' loops and depending on which one is reached first, it locks out the other thread. My code is as follows; both threads are started together by the click of a button. …

Member Avatar for buster2209
0
159
Member Avatar for QuesoTaco

I am studying viruses and trying to figure out how the FLEX module works for C++. I have taken classes before on regular languages, context free, etc. Is FLEX dealing with regular languages or regular expressions, and also what is the difference exactly? Could you give an example of how …

Member Avatar for gusano79
0
233
Member Avatar for NuGG

I have the following code witch is used to display HTML from an XML file. The XML file itself comes from a form POST where a "\" is added in after various HTML tags. Is there anyway I can modify the script below to hide/remove the "\" when the XML …

Member Avatar for ko ko
0
1K
Member Avatar for diafol

Hi all, am using a regex (in php), but I'm all confused. I'm trying to replace a string ('di') with 'deu'. SImple enough, but I don't want a replacement if 'di' is preceded by 'io' as in 'iodine', 'iodic', 'iodide' etc. This is what I have: [CODE]'/(?<!io)di/i'[/CODE] It works fine …

Member Avatar for diafol
0
158
Member Avatar for klemme

Hi, Can someone lead me in the right direction on how to write a preg_match. I have username and password in the DB. And the username should be case sensitive, accordingly to whatever is in the db. And it should only be able to contain numbers and letters. I have …

Member Avatar for blocblue
0
161
Member Avatar for QuesoTaco

I am trying to get consecutive words in a document using flex. Normally the forward slash should work, but for some reason it is not. Also I need to account for spaces. So I can't seem to use that regex character for this, how do I account for consecutive words …

0
135
Member Avatar for scarlettmoon

Working with javascript / jquery - Need to have a more precise regex for the following pattern: Should I have the ignore case included? If so where? X25b777s44K The regex I have: ^([A-Z]?)(\d{2})([a-z]?)(\d{3})([a-z]?)(\d{2})([A-Z]?)$ Thank you for your help.

Member Avatar for scarlettmoon
0
163
Member Avatar for meter1060

I need help. I am very illiterate in Python and the like and I have a chunk of code that checks to see if a page updates and then posts it onto a forum. I need to alter it (hopefully) to check to see if an RRS feed is updated …

Member Avatar for meter1060
0
215
Member Avatar for crankyslap

Hey guys, I can't figure this one out. Sometimes when backing up an sql file using phpmyadmin (database stuff), for some reason it forgets to double up a single quote, resulting in an error when loading the sql file back into the database when required. A line in such an …

Member Avatar for crankyslap
0
97
Member Avatar for [V]

I have a string that looks like: IiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHoooooooooooooooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHi I want to to capture all the segments that have H's in them and return their respective start & stop string positions. [CODE] tms = re.compile("H+") print tms.findall(string) [/CODE] This will find all the Hs but I cant get the string positions …

Member Avatar for Lardmeister
0
209
Member Avatar for stefilina

Hy everyone...I would like to make a thing like the function "like" in php but in C#...It is something already implemented?I've searched on the internet and all i've founded was about regex... I'w waiting for answers..Thnx

Member Avatar for stefilina
0
139

The End.