|
|
Browse by Tags
All Tags » regex » javascript regular expressions
-
Hello all, new to this community. Having some difficulties getting a regex to parse a standard SQL query. It make it simple I will just answer the bullet points from the 'READ FIRST' post.
1. Programming language used - Javascript (or if PHP is easier is accomplish this task, that can be done too)
2. My ultimate task is to create ...
-
I ran into an interesting situation where back references overwrite previous changes in a regular expression.
I needed a regular expression that updated a pattern but also checked for something that comes before the pattern. It should leave everything before the pattern as it was before the updates. There can be multiple matches of ...
-
This has been driving me crazy all day.
Is there any way to match newlines or linebreaks in a textarea html element. I am not talking about when a user adds a line break by hitting enter for example. I am talking about when the browser automatically returns a newline or wraps the line. These breaks need to be matched via ...
-
The problem is with the way you are looking. When you check the character before the , you are telling the regular expression to include it. Use this expression which has a lookbehind expression in it. It will check the character before the comma and not include it in the match.
(?<=[^\\]),
I hope that helps,
Brendan
-
ash_enigma:hi, Is there any way in which i can identify whether a regular expression pattern appearing only on subsequent lines?
Yes, I believe there is.
I came up with this solution. I used this as my sample data
# text line 1
# text line 2
text line 3
# text line 4
# text line 5
And this regex on the sample ...
-
First I will let you know, that you should give a better description of what you want. Do you need to know how to do the javascript or the regex or both? Should a single letter be a match? I assume that you need at least 2 values for it to be a match, and I am also just guessing that when you say single spaces you will allow more than one ...
|
|
|