
July 3rd, 2012, 03:10 AM
|
|
Registered User
|
|
Join Date: Jul 2012
Location: Brussels
Posts: 1
Time spent in forums: 28 m 6 sec
Reputation Power: 0
|
|
|
Simple question: remove character
Hi,
I am very new with RegEx.
I have a variable containing 3 datas (Salary, Name, Job) separated by 3 separators: £ { }
The variable contains: £45000{Barak Obama}President
We user the regular expresion below to retrieve the first data:
£\s*(((?!£|{).)+)\s*{
The result is: £45000{
Problem: we want to remove the separators "£" and "{" to only have 45000
How is it possible with regular expressions ?
Thanks !
|