I am designing a regular expression tester in html and javascript. The user will enter a regex, a string, and choose the function they want to test with (eg search, match, ... |
I want to convert good bunch of url text.
from
CUSTOMER FAQS
HOW wE can HELP
PLANNING YOUR BUDGET
CUSTOMER CASE STUDIES
TENANT DISPUTES
EXIT STRATEGIES
USEFUL dOCUMENTS
USEFUL lINKS
to
customer-faqs
how-we-can-help
planning-your-budget
customer-case-studies
tenant-disputes
exit-strategies
useful-documents
useful-links
Is there any online or offline tool which can do this?
I ... |
I have an application which uses a Javascript-based rules engine. I need a way to convert regular straight quotes into curly (or smart) quotes. It’d be easy to just ... |
I have a string that I need to do multiple search and replaces to remove leading and trailing spaces inside an attribute. The before and after effect is shown here (visually ... |
Consider this javascript:
var values = {
name: "Joe Smith",
location: {
city: "Los Angeles",
...
|
Both JS and AS3 implement RegEx as defined in the ECMAScript edition 3 language specification (ECMA-262).
Although I may not have any trouble converting the regular expressions themselves, in javascript I see ... |
Let's say I have a string of text:
The quick brown fox jumped over 8 or 9 lazy dogs
How would you convert this to lower case hyphen-conjoined words like this?
the-quick-brown-fox-jumped-over-8-or-9-lazy-dogs
I assume it ... |
|
In WYSIWYG editor, I have
<TABLE style="WIDTH: 162pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=216>
I can convert this to
<TABLE style="WIDTH: 162px; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=216>
using
"wysiwygdata".replace(/pt/g ,"px");
Is there any way to ... |
I have a c# function which converts all non-english characters to proper characters for a given text. like as follows
public static string convertString(string phrase)
...
|
I want to convert a string that looks like a regular expression...into a regular expression.
The reason I want to do this is because I am dynamically building a list of keywords ... |
given a string such as one of the following:
'2'
'2px'
'2%'
'2em'
'2foobar'
'foobar'
I would like to determine:
1) whether it is a plain number (2 or 2.2), and if it is round it (Math.floor()) and append ... |
so I am trying to search a string for a sub string, and apparently, I must use regular expressions with the .search function, this is the code I have
var str = ...
|
Any one can help converting this php regex pattern to js compatible one?
$delimiter = "-";
$phone = "some number from the client";
var_dump(
preg_match($phone,"|^([0-9]{1,3}".$delimiter."[0-9]{1,4}".$delimiter."[0-9]{4,12}(#[0-9]{1,4})?)$|")
);
Thanks
|
please can anyone help me to convert this regular expression pattern from javascript to c#
var phonePattern = /^(([^\.\-\,a-wy-z]([\(]?(\+|[x])?\d+[\)]?)?[\s\.\-\,]?([\(]?\d+[\)]?)?[\s\.\-\,]?(\d+[\s\.\-\,]?)+[^\.\-\,a-z])|((\+|[x])?\d+))$/i
i need to validate phone number i'll take the value from textbox and ... |
The following regular expression is workable using C# reg ex:
^(?<survey>#_surveyForm.+)|#(?:(?<url>http.+\.\w{3,4}).+_surveyForm=\w+)$
It matches string such as:
#http://localhost/tableaux-p145717.htm=&_surveyForm=second
or
#_surveyForm=second
I used named capturing groups.
I know Javascript doesn't take advantage of named capturing groups (instead ... |
With regex (i assume) or some other method, how can i convert things like:
marker-image or my-example-setting to markerImage or myExampleSetting.
I was thinking about just splitting by - then convert the index ... |
How can I convert a string either like 'helloThere' or 'HelloThere' to 'Hello There' in Javascript
|
I have been looking for a JS regexp that converts plain text url or hostnames to clickable links, but none of the script I found meet my requirements. Unfortunately, I suck ... |
I needed to grep some files on a server so I quickly hacked out and tested a regexp in a javascript console to meet my needs:
var regexp = /mssql_query\s*\([\"\'][a-z0-9_\s]*(_sp|usp_)/i
// want to ...
|
Convert the url in CONENT to be clickable and make it shorter.
For example:
Convert the content
Balabala The link is http://www.google.com/?aaaaabefaaaaaaaaaaaafeeafaeff3asefffffffffff
to
Balabala The link is <a href=http://www.google.com/?aaaaabefaaaaaaaaaaaafeeafaeff3asefffffffffff>http://www.google.com/?aa...</a>
|
I am using the jTwitter plugin to get Twitter feeds. I am using it combined with a function that makes the links in the returned text click-able.
That function looks ... |
|