18 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for ACE--

I need to get the values from below following html snippet. So far I came up with this regex which helps me trim it down to the values I needed, but to automate this I need to join 2 regex statements to get the result "18" which is where I …

0
84
Member Avatar for xrjf

Suppose we need to populate and filter a Datagrid with the data coming from an Access table. It could be of course a table from Sql Server also. Form dataGridSelect contains two buttons and a DataGridView. Clicking the first button will populate the DataGridView the data comming from a Sql …

0
356
Member Avatar for Reverend Jim

For anyone who is having trouble with regular expressions, I suggest you have a look at [this site](https://regexper.com/#%5Cd%7B1%2C3%7D) by Jeff Avallone. It takes a regular expression in the native (cryptic) format and produces a visual display of the same expression. For example, ^[a-z0-9_-]{3,16}$ becomes ![Screenshot_(10).png](/attachments/large/3/8a654e76556ecc115d044b9d7626b810.png "align-center") and the pattern for …

8
336
Member Avatar for scarcella

I have this regex ((?<!tpg-)assets\/[a-z\/\.](([^{]*?)\.(svg|jpg|png|gif|ico))) Which I use to replace asset source patterns in HTML or JS on with my build script.. It works, all but for one combination. The above regex fixed the situation, but wont work with V8 regex. Is there a work around? Take a look at …

0
159
Member Avatar for Kristian_2

I have solved it... Shame... -------------------------------- I have problem with this code: cin >> str; smatch m; regex e("([[:w:]]+)@([[:w:]]+)\.com"); //<- Here was the error (it was regex e("([[:w:]+)@([[:w:]]+)\.com");) silly me :(( bool found = regex_search(str, m, e); cout << "m.size() " << m.size() << endl; for (int n = 0; …

0
147
Member Avatar for AwkRocks

Hi Friends. I am trying to conver the following grep syntax to replace using awk pattern match. Can you please help? tail -F $logFiles | grep " ERROR " | grep -v 'ERROR_SERVER \|Session is null for endpointId\|SYNCED_IN_VIEW_UPDATED'| cut -d" " -f10-14 | awk 'BEGIN..............}' I am seeing some buffering …

0
146
Member Avatar for pritaeas

For all people having issues building the right regex: I just came across this nice little helper, which allows you to describe what you want using chained methods. https://github.com/jehna/VerbalExpressions

0
120
Member Avatar for jay nadeem

hi friends. i want to try the fee collection system in vb.net. my need is that a reminder remind me the name of defaulters on 20th date of every month. it check the defaulters from database. please hlep me frinds how can i do this.

0
88
Member Avatar for termin8tor

Hello all! I am working on a regular expression to be used in descrambling words in my scrabble solver. What I am attempting to do is write a regular expression that can be used to find all characters within a scrambled word, irrespective of order and match them to a …

0
91
Member Avatar for gamebits

Sometimes ago with the help of some programmers I wrote a piece of code to parse result from ebay's website, title, item number, bids, price sold and date. This is the regex that used to work to get the title of an auction that ended with a sale. [CODE]$match_count1 = …

0
88
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
132
Member Avatar for swinchen

I am working on a project that requires me to clean data from a series of RS-232 instruments. These instruments can have a different version number, and output format (both of which can change the expected ouput). On top of that there are flags that determine if certain fields are …

0
135
Member Avatar for linezero

I'm trying to use this url as regex but it doesnt seems to be working 'sorry of my bad english' Full code: [CODE]Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://localhost/pos/leftpanel.html") Dim response As System.Net.HttpWebResponse = request.GetResponse Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim rssourcecode As String = sr.ReadToEnd Dim r As …

0
126
Member Avatar for killerpopiller

Hi, I can connect to an energy-meter (Baudrate 300!) and the logfile with 228 lines comes slowly in.[code=Python]line = ser.readline(eol='!') print line [/code] If I use the above code, the complete logfiles is shown. And if I parse separatly saved logfiles with match, it sorts out the right values into …

0
114
Member Avatar for MisterSnrub

My form has a RegularExpressionValidator that validates user input in a textbox, lik so: [CODE] <asp:TextBox ID="taSSN" runat="server"></asp:TextBox> <asp:RegularExpressionValidator ID="revSSN" runat="server" ControlToValidate="taSSN" ValidationExpression="^\d{3}-\d{2}-\d{4}$"> Invalid! Remember, you MUST type in the dashes!! </asp:RegularExpressionValidator> [/CODE] Suppose that that the regular expression I want to validate is the standard U.S. Social Security Number …

0
70
Member Avatar for Safia Abdalla

I was curious about the workings of extracting URLs fro webpages. I did several searches for this subject online, and discovered that some people preferred using regular expression while others preferred using parsers. I would like to ask the Daniweb community what they prefer. If you prefer a regular expression …

0
84
Member Avatar for Code_GrasssHopp

For this project i need to have the ability to analyze a file containing a number of .NET(3.5) class's from source code.. identify every class and then output each seperate class into their own text file i.e(this is what the file is like, contains a number of class's in it, …

0
108
Member Avatar for benqus

Hello! =) Please help me with this! =) This is my last one to my diploma work! =) If the user enters a number in the textfield, than JS should set the selection in the textarea to that line. Empty lines are changed to " \n" coz I like for-in …

0
86

The End.