You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussing Regular Expressions in variuos tools (perl, php, egrep, PowerGREP, .NET, procmail etc. etc). Let's help each other build effective regexes!
|
|
|
regular expression for this
|
| |
Hi guys,
I'm new to this group and I joined after spending quite a while trying
to get a regular expression. The line I'm trying to read from a file
looks like the following:
1, 0.000000e+00, 1.000000e+00, 2.000000e+00
So the first item is a digit, followed by 3 floats. I tried the... more »
|
|
xregexp.com
|
| |
[link]
What is it?
XRegExp is an open source (MIT license) JavaScript library that
provides an augmented, extensible, cross-browser implementation of
regular expressions, including support for additional syntax, flags,
and methods.
XRegExp is fully compliant with the regular expression flavor... more »
|
|
matching strings that start with (
|
| |
The regex in this Javascript is not working to find strings that
start with "(". Escaping the ( and using chr(40) did not work either.
I confirmed strings that match are being sent. And if I change my
match to another character like "-" it works.
How do I do this?
if (strTitle.match("^"+"("))... more »
|
|
Using regular expression to extract text between HTML tags
|
| |
Hello,
I am planning to crawl a large number of lawyer bios by using 80legs.
[link] I am trying to understand if regular
expressions can be used to extract the data inside the <title> </
title> tags as ordered in csv rows.
I know that we can extract the text inside the tags by using regex as... more »
|
|
Need some help with a grep regex
|
| |
I have the following lines that I am trying to strip down to the first
33 characters using grep (I want to remove the binary addresses):
Minimum Host : 0.0.0.1
00000000.00000000.00000000.000 00001
Maximum Host : 0.255.255.254
00000000.11111111.11111111.111 11110
Here is what I have for grep but it is not working and I was hoping... more »
|
|
Find Hex number
|
| |
Hello,
Suppose I have this hex input: "78FE8909CD" etc
Can somebody please let me know what should be the RE to find a
particular byte ?
Say I want to find 8F from the above input ?
RE should return false, because 8F is not found as a byte because the
bytes would be:7F, FE, 89, etc
Is is possible to find this using RE ?... more »
|
|
Help with inverse of regular expression
|
| |
I have a working regex that selects all <def>...</def> tags.
<def\b[^>]*>(.*?)</def>
The problem is that I want to select everything other than the def
tags and their contents. How would I go about this?
|
|
JavaScript RegEx Parse Command Line into Array
|
| |
I need a javascript method that will parse a command line instruction
into an array of pairs. The method should utilize the javascript
String.match or other regular expression enabled methods to implement
the parse. The regex should be implemented in a very terse
instruction. The deliverable for this project is a terse javascript... more »
|
|
regex for.. well, anything?
|
| |
hello,
im a seasoned programmer but a regex newb. ive read some excellent
tutorials over the years, but i still often find myself starting all
over with baby steps when it comes to regexes. dunno why.
i need to plug in a regex into a software tool that validates a
string. for this particular string, i dont care *what* the value is,... more »
|
|
tricky question
|
| |
Hi, does anyone know how to do this? I’ve been banging my head on this
one all day (I’m not very good at this):
I am looking for a pattern to find all groups of digits separated by
blanks but not including the last blanks, e.g.
‘blah blah 12 dsa 12 43 999 etc.’ (should be in fixed size font)... more »
|
|
|