-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to returns matches from a regular expression string. The regex string is:
(?<TICKER>[A-Z]+)(?<SPACE>\\s)(?<MONTH_ALPHA_ABBREV>Jan|Feb|Mar|Apr|May|Jun|Jul|Sep|Oct|Nov|Dec)(?<SPACE>\\s)(?<DAY>\\d+)(?<SPACE>\\s)(?<YEAR_LONG>[2][0][0-9][0-9])(?<SPACE>\\s)(…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to write a regular expression that will replace the word Paris by a link, for only the word is not ready a part of a link.
Example:
i'm living <a href="Paris" atl="Paris link">in Paris</a>, near Paris <a href="gare">Gare du Nord</a>, i love Paris.
would become…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
A frequent issue in code reviews is whether a numeric value should be hard-coded in the code or not. Does anyone know of a nice regular expression that can catch 'magic numbers' in code like:
int overDue = 30;
Money fee = new Money(5.25D);
without also getting a ton of false positives like for…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have the following text:
started: Project: ProjectA, Configuration: Release Any CPU ------
I would like to get just the actual project name which in this example is "ProjectA".
I do have a regular expression "started:(\s)Project:(\s).*,"
which will give me "started: Project: ProjectA,"…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Related to my previous question, I have a string on the following format:
this {is} a [sample] string with [some] {special} words. [another one]
What is the regular expression to extract the words within either square or curly brackets, ie.
{is}
[sample]
[some]
{special}
[another one]
Note:…
>>> More