Hello
I like to return the strings in this table
<tr class="rowodd" onclick="window.location.href='/portal/offers/show/entityId/32114';">
<td>01.10.2009</td>
<td>AN09551</td>
<td>[2009132] Ich bin Un. <a href="/portal/clients/show/entityId/762350"><myimsrc="/img/bullet_go.pngs" alt="" title="Kundenakte aufrufen"></a></td...
I am creating filenames based on dynamic values such as company name and forename/surname.
I would then like to verify that the filename is valid before attempting to create the file. That is check it doesn't contain any illegal characters, and replace them if they do.
I could of course just use a regular expression, but was wonde...
I've found loads of examples on to to replace text in files using regex. However it all boils down to two versions:
1. Iterate over all lines in the file and apply regex to each single line
2. Load the whole file.
No. 2 Is not feasible using "my" files - they're about 2GiB...
As to No. 1: Currently this is my approach, however I was won...
I have a fairly long and complex HTML document, and I need to find all occurences of a given string, e.g. "foobar", unless it's between <a> and </a> anchor tags.
The trouble is: it could be inside some text between the anchor tags, e.g.
<a>this is a foobar test</a>
and even in this case, I should not find the match.
How can I do th...
Using JQuery, I'm extracting the value from what is essentially a query box for some data in a MySQL database. Knowing that most users will use an '*' (asterisk) as a wildcard value and that MySQL uses the '%' character, I want to convert any asterisks to '%'.
Normally, this would just be as simple as using
queryString = inputText.rep...
I am working on a program that reads a stream of binary data from a serial port and needs to parse and format the input.
Data is read in constantly and needs to be displayed as a full string. Each string has a "start code" of 3 bytes and an "end code" of 3 bytes. I need to write a parser that will find the data based on start and end co...
I have the following snippet
cv_13221 IN OUT SYS_REFCURSOR,
and just want to get cv_13221 out of it.
I tried the following regex
cv_.*\s
but it fetches me
cv_13221 IN OUT
what can I do to make it stop at first occurrence of \s
I am trying this in regex buddy
...
I have a long string, and an array of country names. So the array looks something like this:
array('Afghanistan', 'Bulgaria', 'United States', 'Bulgaria', ...)
I need to count the number of times each country appears in the string.
Is there a quick and nifty way of doing this, i.e., some kind of magical preg_match_all which receives ...
I am working on an application that searches text using regular expressions based on input from a user. One option the user has is to include a "Match 0 or more characters" wildcard using the asterisk. I need this to only match between word boundaries. My first attempt was to convert all asterisks to (?:(?=\B).)*, which works fine for mo...
I need an .hgdontignore file :-) to include certain files and exclude everything else in a directory. Basically I want to include only the .jar files in a particular directory and nothing else. How can I do this? I'm not that skilled in regular expression syntax. Or can I do it with glob syntax? (I prefer that for readability)
Just as a...
How can I place characters directly next to a group reference in regex? For example, if I am replacing the expression "0([0-9])" with "\1 aaa" it will show the number with a space and then "aaa" next to it. I want to place "aaa" directly next to the number without a space in between them.
EDIT: Sorry, I forgot the issue in my example. I...
hey all,
i'm trying to get Color information that i've stored in a text file and then use that color as the forecolor for a label. BUT, at run time when i click the button to do it, it doesnt give me any error messages or anything. the code i have is below:
MatchCollection lines = Regex.Matches(File.ReadAllText(Path), @"(.+?)\r\n""([^...
I would like to find text which is between the < and > characters, and then turn any found text into "normal" case, where first letter of word is capitalized. Here is what I have thus far:
Function findTextBetweenCarots() As String
Dim strText As String
With Selection
.Find.Text = "<" ' what about <[^0-9]+> ?
.Find.Forward =...
How can I write a javascript/jquery function that replaces text in the html document without affecting the markup, only the text content?
For instance if I want to replace the word "style" with "no style" here:
<tr>
<td style="width:300px">This TD has style</td>
<td style="width:300px">This TD has <span class="style100">style</span> to...
Hi,
I would need a simple regexp urgently for php preg_replace:
Input: Quick brown :no: fox etc
Output: Quick brown !|no|! fox etc
:something:
to
!|something|!
Thanks
...
Hello, I am writing a small program to do some calculations.
Basically the input is the following:
-91 10 -4 5
The digits can have the negative sign or not. They are also separated by a space.
I need a regular expression to filter each digit including the sign if there is one.
Thanks!
Adam
...
Hello everybody.
[Check My EDIT for better Explanation]
I need some help with a very big string i have.
Its like this:
$big_string = "TinteiroID:1#TinteiroLABEL:HP CB335EE#TinteiroREF:CB335EE#TinteiroMARCA:HP#TinteiroGENERO:Tinteiro Preto Reciclado#TinteiroQUANTIDADE:23#FIMPROD#TinteiroID:4#TinteiroLABEL:HP 51633 M#TinteiroREF:51633 ...
I'm a complete newbie to RegEx and I'm sure it'll be brilliant to use once I know how to use it. :P
I have a couple of textBoxes and I was wondering if anyone could me acomplish what I need.
In the EMail textbox, I'd like to make sure the user writes in a valid email. [email protected]
Is there a way for RegEx to help me out?
I'd also reall...
Suppose I have several strings: str1 and str2 and str3.
How to find lines that have all the strings?
How to find lines that can have any of them?
And how to find lines that have str1 and either of str2 and str3 [but not both?]?
...
Here is the suject:
http://www.mysite.com/files/get/937IPiztQG/the-blah-blah-text-i-dont-need.mov
What I need using regex is only the bit before the last / (including that last / too)
Now this 937IPiztQG bit can change, it has a-z A-Z 0-9 - _
Heres the code i wrote but it doesnt work
$code = strstr($url, '/http:\/\/www\.mysite\.com\...